]> git.ktnx.net Git - mpd-feeder.git/commitdiff
fixed SQL param numbers
authorDamyan Ivanov <dmn@debian.org>
Thu, 11 Nov 2021 09:20:17 +0000 (09:20 +0000)
committerDamyan Ivanov <dmn@debian.org>
Thu, 11 Nov 2021 09:20:17 +0000 (09:20 +0000)
bin/mpd-feeder

index 95227e9c6dbfd2934a9372d838fafe638233ce55..ddc4a923a9f9fda295010c9fc6aba97ca72b2599 100755 (executable)
@@ -186,7 +186,7 @@ use constant DEFAULT_CONFIG_FILE => '/etc/mpd-feeder/mpd-feeder.conf';
         $db->prepare_cached(
             <<'SQL')->execute( $song, $artist, $album, $db_generation );
 INSERT INTO songs(path, artist, album, generation)
-VALUES($1, $2, $3, $3)
+VALUES($1, $2, $3, $4)
 ON CONFLICT ON CONSTRAINT songs_pkey DO
 UPDATE SET artist = $2
          , album = $3