[mythtv-commits] [MythTV/mythtv] b6286a: Python Bindings: Add compatibility to MariaDB 10.6

rcrdnalor noreply at github.com
Fri May 20 15:15:37 UTC 2022

  Branch: refs/heads/fixes/32
  Home:   https://github.com/MythTV/mythtv
  Commit: b6286af7d82f81082f8d07dfcee3f7f8c9ab2542
  Author: Roland Ernst <rcrernst at gmail.com>
  Date:   2022-05-20 (Fri, 20 May 2022)

  Changed paths:
    M mythtv/bindings/python/MythTV/database.py

  Log Message:
  Python Bindings: Add compatibility to MariaDB 10.6

MariaDB 10.6 introduced a new keyword 'offset' which collides with
the field 'offset' from the recordedseek table.

Backtick all queries related to to this table (in class DBDataRef
and its descendants) to fix this collision.
Note: The Python Bindings use the field names of a SQL table as
properties, therefore simple back-ticking 'offset' won't work.

The related MySQL error is:

MythTV.exceptions.MythDBError: MySQL error 1064:
You have an error in your SQL syntax;
check the manual that corresponds to your MariaDB server version
for the right syntax to use near 'offset,type FROM recordedseek WHERE ...

Tested with python3.6 and python3.10 .

(cherry picked from commit 094648aa7a78095a37db496fa11956a100ae5b0c)

More information about the mythtv-commits mailing list