[mythtv-commits] Ticket #9968: Import recorder NULL strings in mysql query

MythTV noreply at mythtv.org
Sun Aug 7 06:57:57 UTC 2011


#9968: Import recorder NULL strings in mysql query
-------------------------------------+-------------------------------------
 Reporter:  Lawrence Rust <lvr@…>    |           Type:  Bug Report -
   Status:  new                      |  General
Milestone:  unknown                  |       Priority:  minor
  Version:  Trunk Head               |      Component:  MythTV - General
 Keywords:                           |       Severity:  medium
                                     |  Ticket locked:  0
-------------------------------------+-------------------------------------
 Commits 4dfcdb8dd0 1fb0a77fc and d85b750 introduced much stricter checking
 on mysql queries which results in the import recorder giving the following
 message in the backend log:

 {{{
 2011-08-06 10:04:58.926519 E  Original query failed, but resend with empty
 strings in place of NULL strings worked.
 DB Error (MSqlQuery):
 Query was:
 INSERT INTO recorded    (chanid,    starttime,   endtime,         title,
 subtitle,  description, season,          episode,              hostname,
 category,    recgroup,        autoexpire,           recordid,  seriesid,
 programid,       inetref,              stars,     previouslyshown,
 originalairdate,      findid,    transcoder,  playgroup,
 recpriority,          basename,  progstart,   progend,         profile,
 duplicate, storagegroup) VALUES  (?,   ?,     ?,           ?,
 ?, ?,       ?,         ?,             ?, ?,   ?,       ?,             ?,
 ?,   ?,      ?,             ?,    ?,                      ?,         ?,
 ?, ?,      ?,         ?, ?,  ?,        ?,             0,         ?)
 Bindings were:
 :AUTOEXP=true, :BASENAME="92009_20110806100458.mpg", :CATEGORY=NULL,
 :CHANID=92009, :DESC=NULL, :ENDS=2011-08-06T10:30:00, :EPISODE=0,
 :FINDID=0,
 :HOSTNAME="gagarin", :INETREF=NULL, :ORIGAIRDATE="0000-00-00",
 :PLAYGROUP="Default", :PROFILE="Default", :PROGEND=2011-08-06T10:30:00,
 :PROGRAMID=NULL, :PROGSTART=2011-08-06T10:04:58, :RECGROUP="Default",
 :RECORDID=0, :RECPRIORITY=0, :REPEAT=false, :SEASON=0, :SERIESID=NULL,
 :STARS=0,
 :STARTS=2011-08-06T10:04:58, :STORGROUP="LiveTV", :SUBTITLE=NULL,
 :TITLE="",
 :TRANSCODER=0
 Driver error was [2/1048]:
 QMYSQL3: Unable to execute statement
 Database error was:
 Column 'subtitle' cannot be null

 }}}

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/9968>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list