[mythtv-commits] Ticket #10136: EIT update gives DB Error about duplicate primary keys

MythTV noreply at mythtv.org
Wed Sep 4 13:52:50 UTC 2013


#10136: EIT update gives DB Error about duplicate primary keys
-------------------------------------+-----------------------------
 Reporter:  klaas.de.waal@…          |          Owner:  stuarta
     Type:  Patch - Bug Fix          |         Status:  new
 Priority:  minor                    |      Milestone:  0.27
Component:  MythTV - EIT             |        Version:  Master Head
 Severity:  medium                   |     Resolution:
 Keywords:  eit duplicate key ziggo  |  Ticket locked:  0
-------------------------------------+-----------------------------

Comment (by bas-t <tycholursen@…>):

 OK, I'm stuck. The last error in my log is this one:

 2013-09-04 14:57:21.374067 E [17190/17234] EIT mythdb.cpp:183 (DBError) -
 DB Error (change_program):
 Query was:
 UPDATE program SET starttime = ?,     endtime   = ? WHERE chanid    = ?
 AND       starttime = ?
 Bindings were:
 :CHANID=1906, :NEWEND=2013-09-07T00:00:00Z,
 :NEWSTART=2013-09-06T21:15:00Z,
 :OLDSTART=2013-09-06T20:55:00Z
 Driver error was [2/1062]:
 QMYSQL3: Unable to execute statement
 Database error was:
 Duplicate entry '1906-2013-09-06 21:15:00-0' for key 'PRIMARY'


 You have seen the output of dvbsnoop on pastebin. Looking at the log, I
 don't know how to search in the output of dvbsnoopback for the matching
 program. I mean, how do I translate

 :CHANID=1906, :NEWEND=2013-09-07T00:00:00Z,
 :NEWSTART=2013-09-06T21:15:00Z,
 :OLDSTART=2013-09-06T20:55:00Z

 to something usefull to compare with dvbsnoop?

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10136#comment:12>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list