Skip to content

Commit

Permalink
Merge pull request xbmc#9036 from MilhouseVH/fix_mysql_songs_backport
Browse files Browse the repository at this point in the history
[mysql]: Fix limited songs query after xbmc#9005
  • Loading branch information
MartijnKaijser committed Feb 4, 2016
2 parents ac50f91 + f991cb3 commit b587e98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/music/MusicDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3836,7 +3836,7 @@ bool CMusicDatabase::GetSongsFullByWhere(const std::string &baseDir, const Filte
strSQL += strSQLExtra;
else
//Apply where clause and limits to songview, then join as mutiple records in result set per song
strSQL += " WHERE songview.idsong in (SELECT idsong FROM songview " + strSQLExtra + ")";
strSQL += " WHERE songview.idsong IN (SELECT idsong FROM (SELECT idsong FROM songview " + strSQLExtra + ") as temp)";
}

CLog::Log(LOGDEBUG, "%s query = %s", __FUNCTION__, strSQL.c_str());
Expand Down

0 comments on commit b587e98

Please sign in to comment.