Fixed bug in IndexerTrack update logic -- sometimes some properties

weren't getting properly saved (fallout from removal of 'year' column in
'tracks' table).
This commit is contained in:
casey langen 2018-01-01 00:45:00 -08:00
parent d5ff695eed
commit c8fd640a0a

View File

@ -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) {