From c8fd640a0ad2390924eaeaa48cc20384d7630b34 Mon Sep 17 00:00:00 2001 From: casey langen Date: Mon, 1 Jan 2018 00:45:00 -0800 Subject: [PATCH] Fixed bug in IndexerTrack update logic -- sometimes some properties weren't getting properly saved (fallout from removal of 'year' column in 'tracks' table). --- src/core/library/track/IndexerTrack.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/library/track/IndexerTrack.cpp b/src/core/library/track/IndexerTrack.cpp index 5f3391bb4..f64bda744 100644 --- a/src/core/library/track/IndexerTrack.cpp +++ b/src/core/library/track/IndexerTrack.cpp @@ -286,7 +286,7 @@ static int64_t writeToTracksTable( query = "INSERT INTO tracks " "(track, disc, bpm, duration, filesize, title, filename, filetime, path_id, external_id) " - "VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"; + "VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"; } db::Statement stmt(query.c_str(), dbConnection); @@ -303,7 +303,7 @@ static int64_t writeToTracksTable( stmt.BindText(9, track.GetString("external_id")); if (id != 0) { - stmt.BindInt64(11, id); + stmt.BindInt64(10, id); } if (stmt.Step() == db::Done) {