[mythtv-commits] Ticket #6354: PATCH: Invalid check in scheduler.cpp
MythTV
mythtv at cvs.mythtv.org
Fri Mar 13 20:11:30 UTC 2009
#6354: PATCH: Invalid check in scheduler.cpp
---------------------------------------+------------------------------------
Reporter: tomimo at ncircle.nullnet.fi | Owner: bjm
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: head
Severity: low | Mlocked: 0
---------------------------------------+------------------------------------
Here is a simple patch that fixes an inverted if-check which otherwise
produces the following errors at certain times.
2009-03-13 22:00:19.282 DB Error (Update next_record):
Query was:
UPDATE record SET next_record = ? WHERE recordid = ?;
Bindings were:
:NEXTREC=, :RECORDID=105
Driver error was [2/1048]:
QMYSQL3: Unable to execute statement
Database error was:
Column 'next_record' cannot be null
===================================================================
--- programs/mythbackend/scheduler.cpp (revision 20121)
+++ programs/mythbackend/scheduler.cpp (working copy)
@@ -1336,7 +1336,7 @@
if (next_record == nextRecMap[recid])
continue;
- if (nextRecMap[recid].isNull() && next_record.isValid())
+ if (nextRecMap[recid].isNull() || !next_record.isValid())
{
subquery.prepare("UPDATE record "
"SET next_record = '0000-00-00T00:00:00'
"
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/6354>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list