Opened 19 years ago
Closed 19 years ago
Last modified 19 years ago
#4563 closed defect (fixed)
Scheduler ambiguous SQL query with certain custom recording rules
| Reported by: | Owned by: | Janne Grunau | |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.21 |
| Component: | mythtv | Version: | head |
| Severity: | medium | Keywords: | mythbackend scheduler power search |
| Cc: | Ticket locked: | no |
Description
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.
Attachments (1)
Change History (4)
by , 19 years ago
| Attachment: | myth-scheduler-recordid-sql.patch added |
|---|
comment:1 by , 19 years ago
| Milestone: | unknown → 0.21 |
|---|---|
| Owner: | changed from to |
| Status: | new → accepted |
comment:2 by , 19 years ago
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
Note:
See TracTickets
for help on using tickets.

Patch to mythbackend/scheduler.cpp