mirror of
https://github.com/clangen/musikcube.git
synced 2024-12-30 12:16:00 +00:00
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:
parent
d5ff695eed
commit
c8fd640a0a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user