[mythtv-commits] Ticket #2237: Inconsistencies in a max program data queries
MythTV
mythtv at cvs.mythtv.org
Thu Aug 24 07:24:58 UTC 2006
#2237: Inconsistencies in a max program data queries
----------------------------------+-----------------------------------------
Reporter: otto at kolsi dot fi | Owner: ijr
Type: patch | Status: new
Priority: minor | Milestone:
Component: mythtv | Version: head
Severity: low |
----------------------------------+-----------------------------------------
There seems to be slightly different ways to query the latest program data
that we have in DB. For example, in statusbox.cpp we have query {{{"SELECT
max(endtime) FROM program WHERE manualid=0;"}}} but in some other places
the WHERE is missing. If you have e.g. 7 days of program data and some
manual recording that goes beyond the 7 days, then the httpstatus.cpp
returns maximum date for the program data according to the manual
recording date. I think this should be consistent between statusbox.cpp
(mythfrontend) and httpstatus.cpp (mythweb etc.). Attached patch adds the
WHERE clause to the query in httpstatus.cpp.
There are at least three other places where the same WHERE is missing
(mainserver.cpp, 2 * filldata.cpp). In filldata.cpp there are two places
where the WHERE is used and two where it isn't. I didn't add these to the
patch because I wasn't sure, but probably at least some of these other
queries should be modified also.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2237>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list