[mythtv-commits] Ticket #13516: Mysql 8.0 added system to reserverd words
MythTV
noreply at mythtv.org
Wed Nov 20 07:15:41 UTC 2019
#13516: Mysql 8.0 added system to reserverd words
-------------------------------------------+-------------------------------
Reporter: jhavens1566 | Owner: (none)
Type: Bug Report - General | Status: new
Priority: minor | Milestone: needs_triage
Component: MythTV - Mythfilldatabase | Version: Unspecified
Severity: medium | Keywords: mysql
Ticket locked: 0 | datadirect.cpp
-------------------------------------------+-------------------------------
Therefore system needs backticks around it.
Github link is here: https://github.com/MythTV/mythtv/pull/188
This commit is for datadirect.cpp in libmythtv
Without it the following error occurs:
2019-11-19 23:06:44.154754 E DB Error (programrating insert):
Query was:
INSERT IGNORE INTO programrating ( chanid, starttime, system,
rating) VALUES (?, ?, ?, ?)
Bindings were:
:CHANID=2007, :RATING="TV-G", :START=2019-12-07T11:37:00.000Z,
:SYS="VCHIP"
No error type from QSqlError? Strange...
2019-11-19 23:07:06.312067 E Error preparing query: INSERT IGNORE INTO
programrating ( chanid, starttime, system, rating) VALUES (:CHANID,
:START, :SYS, :RATING)
2019-11-19 23:07:06.312079 E Driver error was [2/1064]:
QMYSQL3: Unable to prepare statement
Database error was:
You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'system,
rating) VALUES (?, ?, ?, ?)' at line 1
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13516>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list