1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 16:29:43 +01:00

* According to Leo this is even faster.

This commit is contained in:
Christian Muehlhaeuser 2012-05-23 17:54:42 +02:00
parent 8aec11c0e9
commit 6b1aa6e9cd

View File

@ -139,7 +139,7 @@ DatabaseCommand_AllAlbums::execForCollection( DatabaseImpl* dbi )
QString sql = QString(
"SELECT DISTINCT album.id, album.name, album.artist, artist.name "
"FROM file, file_join, album "
"FROM file_join, file, album "
"LEFT OUTER JOIN artist ON album.artist = artist.id "
"WHERE file.id = file_join.file "
"AND file_join.album = album.id "