mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-02 11:58:27 +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 =
|
query =
|
||||||
"INSERT INTO tracks "
|
"INSERT INTO tracks "
|
||||||
"(track, disc, bpm, duration, filesize, title, filename, filetime, path_id, external_id) "
|
"(track, disc, bpm, duration, filesize, title, filename, filetime, path_id, external_id) "
|
||||||
"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
|
"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
|
||||||
}
|
}
|
||||||
|
|
||||||
db::Statement stmt(query.c_str(), dbConnection);
|
db::Statement stmt(query.c_str(), dbConnection);
|
||||||
@ -303,7 +303,7 @@ static int64_t writeToTracksTable(
|
|||||||
stmt.BindText(9, track.GetString("external_id"));
|
stmt.BindText(9, track.GetString("external_id"));
|
||||||
|
|
||||||
if (id != 0) {
|
if (id != 0) {
|
||||||
stmt.BindInt64(11, id);
|
stmt.BindInt64(10, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stmt.Step() == db::Done) {
|
if (stmt.Step() == db::Done) {
|
||||||
|
Loading…
Reference in New Issue
Block a user