Ticket #8819: SchedulerDistinct.patch
File SchedulerDistinct.patch, 983 bytes (added by , 14 years ago) |
---|
-
programs/mythbackend/scheduler.cpp
3303 3303 progfindid.replace("program.","p."); 3304 3304 progfindid.replace("channel.","c."); 3305 3305 QString query = QString( 3306 "SELECT DISTINCT"3306 "SELECT " 3307 3307 " c.chanid, c.sourceid, p.starttime, "// 0-2 3308 3308 " p.endtime, p.title, p.subtitle, "// 3-5 3309 3309 " p.description, c.channum, c.callsign, "// 6-8 … … 3341 3341 " oldrecstatus.starttime = p.starttime AND " 3342 3342 " oldrecstatus.title = p.title ) " 3343 3343 "WHERE p.endtime >= NOW() - INTERVAL 1 DAY " 3344 "GROUP BY c.sourceid, c.chanid, p.starttime " 3344 3345 "ORDER BY RECTABLE.recordid DESC "); 3345 3346 query.replace("RECTABLE", schedTmpRecord); 3346 3347