mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-06 21:31:23 +01:00
Format code
This commit is contained in:
parent
0893d01b4a
commit
6ab6e6d3a8
@ -178,16 +178,7 @@ QSqlQuery PlaylistBackend::GetPlaylistRows(int playlist) {
|
|||||||
QMutexLocker l(db_->Mutex());
|
QMutexLocker l(db_->Mutex());
|
||||||
QSqlDatabase db(db_->Connect());
|
QSqlDatabase db(db_->Connect());
|
||||||
|
|
||||||
QString query = "SELECT songs.ROWID, " + Song::JoinSpec("songs") +
|
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";
|
||||||
","
|
|
||||||
" 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);
|
QSqlQuery q(db);
|
||||||
// Forward iterations only may be faster
|
// Forward iterations only may be faster
|
||||||
q.setForwardOnly(true);
|
q.setForwardOnly(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user