Skip to content

Commit

Permalink
Merge pull request #2906 from uklotzde/playlistdao
Browse files Browse the repository at this point in the history
PlaylistDAO: Add missing spaces in SQL query
  • Loading branch information
Holzhaus authored Jun 30, 2020
2 parents af411ab + cf4073e commit e014ecd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/library/dao/playlistdao.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,12 +399,12 @@ void PlaylistDAO::removeHiddenTracks(const int playlistId) {
// phantom track_ids with no match in the library table
QSqlQuery query(m_database);
query.prepare(QStringLiteral(
"SELECT p1.position FROM PlaylistTracks AS p1"
"SELECT p1.position FROM PlaylistTracks AS p1 "
"WHERE p1.id NOT IN ("
"SELECT p2.id FROM PlaylistTracks AS p2"
"INNER JOIN library ON library.id = p2.track_id "
"WHERE p2.playlist_id = p1.playlist_id "
"AND library.mixxx_deleted = 0 ) "
"SELECT p2.id FROM PlaylistTracks AS p2 "
"INNER JOIN library ON library.id=p2.track_id "
"WHERE p2.playlist_id=p1.playlist_id "
"AND library.mixxx_deleted=0) "
"AND p1.playlist_id=:id"));
query.bindValue(":id", playlistId);
query.setForwardOnly(true);
Expand Down

0 comments on commit e014ecd

Please sign in to comment.