View Issue Details

IDProjectCategoryView StatusLast Update
0009539MMW v4Framework: Scripts/Extensionspublic2012-12-22 02:32
ReporterLudek Assigned To 
PriorityurgentSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version4.0 
Target Version4.1Fixed in Version4.1 
Summary0009539: ISDBDatabase::GetAutoPlaylistQuery doesn't work correctly for limited auto-playlists
DescriptionIf an AutoPlaylist has a limit, no LIMIT clause is appended to the SQL.
However, if you base your AutoPlaylist A on another AutoPlaylist B and B has a track limit then is the LIMIT clause appended the SQL of A (but still
 not on B).

Example:
"Last 50 played"
ISDBDatabase::GetAutoPlaylistQuery generates this SQL which lacks the LIMIT clause:
SELECT Songs.* FROM Songs WHERE Songs.PlayCounter>0 ORDER BY Songs.LastTimePlayed

If you then create another AutoPlaylist which is based on "Last 50 played", you get this SQL which contains the LIMIT clause in the nested statement:
SELECT Songs.* FROM Songs WHERE ( Songs.Id IN (SELECT Songs.Id FROM Songs WHERE Songs.PlayCounter>0 ORDER BY Songs.LastTimePlayed LIMIT 50) )
Additional Informationhttp://www.mediamonkey.com/wiki/index.php/ISDBDatabase::GetAutoPlaylistQuery
TagsNo tags attached.
Fixed in build1601

Activities

Ludek

2012-07-25 19:36

developer   ~0031586

Fixed in build 1601

peke

2012-12-22 02:32

developer   ~0034120

Verified 1615