projects
/
vuplus_xbmc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34d1e49
)
[mysql]: Fix limited songs query after #9005
author
MilhouseVH
<milhouseVH.github@nmacleod.com>
Wed, 3 Feb 2016 10:29:58 +0000
(10:29 +0000)
committer
MilhouseVH
<milhouseVH.github@nmacleod.com>
Wed, 3 Feb 2016 10:29:58 +0000
(10:29 +0000)
xbmc/music/MusicDatabase.cpp
patch
|
blob
|
history
diff --git
a/xbmc/music/MusicDatabase.cpp
b/xbmc/music/MusicDatabase.cpp
index
2dce248
..
fe9e3d3
100644
(file)
--- a/
xbmc/music/MusicDatabase.cpp
+++ b/
xbmc/music/MusicDatabase.cpp
@@
-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());