From 6ab6e6d3a893874527b2a0f237c2ad02175b9175 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 22 Nov 2020 03:36:46 +0100 Subject: [PATCH] Format code --- src/playlist/playlistbackend.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/playlist/playlistbackend.cpp b/src/playlist/playlistbackend.cpp index 563d7810b..dc349d90e 100644 --- a/src/playlist/playlistbackend.cpp +++ b/src/playlist/playlistbackend.cpp @@ -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);