1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-05 04:46:43 +01:00

Format code

This commit is contained in:
Jonas Kvinge 2020-11-22 03:36:46 +01:00
parent 0893d01b4a
commit 6ab6e6d3a8

View File

@ -178,16 +178,7 @@ QSqlQuery PlaylistBackend::GetPlaylistRows(int playlist) {
QMutexLocker l(db_->Mutex());
QSqlDatabase db(db_->Connect());
QString query = "SELECT songs.ROWID, " + Song::JoinSpec("songs") +
","
" p.ROWID, " +
Song::JoinSpec("p") +
","
" p.type"
" FROM playlist_items AS p"
" LEFT JOIN songs"
" ON p.collection_id = songs.ROWID"
" WHERE p.playlist = :playlist";
QString query = "SELECT songs.ROWID, " + Song::JoinSpec("songs") + ", p.ROWID, " + Song::JoinSpec("p") + ", p.type FROM playlist_items AS p LEFT JOIN songs ON p.collection_id = songs.ROWID WHERE p.playlist = :playlist";
QSqlQuery q(db);
// Forward iterations only may be faster
q.setForwardOnly(true);