[mythtv-commits] Ticket #4563: Scheduler ambiguous SQL query with certain custom recording rules

MythTV mythtv at cvs.mythtv.org
Fri Feb 1 14:32:44 UTC 2008


#4563: Scheduler ambiguous SQL query with certain custom recording rules
--------------------------------+-------------------------------------------
 Reporter:  taco_mel at yahoo.com  |       Owner:  ijr    
     Type:  defect              |      Status:  new    
 Priority:  minor               |   Milestone:  unknown
Component:  mythtv              |     Version:  head   
 Severity:  medium              |     Mlocked:  0      
--------------------------------+-------------------------------------------
 I had occasion to write a custom "power search" query that includes a
 table containing a column called 'recordid', and this makes the 'recordid'
 of the resulting query ambiguous.  Here's what was run within MySQL:

 INSERT INTO recordmatch (recordid, chanid, starttime, manualid) SELECT
 record.recordid, program.chanid, program.starttime,  IF(search = 5,
 '''recordid''', 0) FROM (record, program INNER JOIN channel       ON
 channel.chanid = program.chanid)...

 A patch for scheduler.cpp is attached to qualify that with the appropriate
 table name.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/4563>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list