[mythtv-commits] Ticket #12134: Programrating update/insertdb insert ignore instead of insert
MythTV
noreply at mythtv.org
Sat May 3 23:35:18 UTC 2014
#12134: Programrating update/insertdb insert ignore instead of insert
--------------------------------------+-------------------------
Reporter: slackerlinux85@… | Owner:
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - General | Version: Unspecified
Severity: medium | Keywords:
Ticket locked: 0 |
--------------------------------------+-------------------------
currently a sql statement in programdata.cpp is spamming the backend logs
with this
{{{
2014-04-07 21:57:54.991046 E [1013/1329] EIT mythdb.cpp:183 (DBError) - DB
Error (programrating insert):
Query was:
INSERT INTO programrating ( chanid, starttime, system, rating)
VALUES (?, ?, ?, ?)
Bindings were:
:CHANID=1007, :RATING="G", :START=2014-04-12T07:30:00Z, :SYS=""
Driver error was [2/1062]:
QMYSQL3: Unable to execute statement
Database error was:
Duplicate entry '1007-2014-04-12 07:30:00--G' for key 'chanid'
}}}
attached patch switches the sql statement to insert ignore so it doesnt
spam the logs. behaviour shouldnt change since it wasnt adding/updating
the fields on error anyway
--
Ticket URL: <https://code.mythtv.org/trac/ticket/12134>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list