Skip to content

Commit

Permalink
DB: Care for MySQL v8.0 use of "system" as a reserverd word
Browse files Browse the repository at this point in the history
Add: system to `system` changes for datadirect (that doesn't
exist in v31-Pre.

Thanks to jhavens1566

Fixes #13516
  • Loading branch information
Bill Meek committed Nov 24, 2019
1 parent f1859d9 commit 08ebf05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/datadirect.cpp
Expand Up @@ -881,7 +881,7 @@ void DataDirectProcessor::DataDirectProgramUpdate(void)
#endif

if (!query.exec("INSERT IGNORE INTO programrating (chanid, starttime, "
"system, rating) SELECT dd_v_program.chanid, "
"`system`, rating) SELECT dd_v_program.chanid, "
"DATE_ADD(starttime, INTERVAL channel.tmoffset MINUTE), "
" 'MPAA', "
"mpaarating FROM dd_v_program, channel WHERE "
Expand All @@ -890,7 +890,7 @@ void DataDirectProcessor::DataDirectProgramUpdate(void)
MythDB::DBError("Inserting into programrating table", query);

if (!query.exec("INSERT IGNORE INTO programrating (chanid, starttime, "
"system, rating) SELECT dd_v_program.chanid, "
"`system`, rating) SELECT dd_v_program.chanid, "
"DATE_ADD(starttime, INTERVAL channel.tmoffset MINUTE), "
"'VCHIP', "
"tvrating FROM dd_v_program, channel WHERE tvrating != ''"
Expand Down

0 comments on commit 08ebf05

Please sign in to comment.