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

rcrdnalor noreply at github.com
Thu May 12 19:11:51 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/MythTV/mythtv
  Commit: 094648aa7a78095a37db496fa11956a100ae5b0c
      https://github.com/MythTV/mythtv/commit/094648aa7a78095a37db496fa11956a100ae5b0c
  Author: Roland Ernst <rcrernst at gmail.com>
  Date:   2022-05-12 (Thu, 12 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.

Solution:
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 .


  Commit: ee55ad0cf47698e95617e11e657f0fa8a7f7bb4d
      https://github.com/MythTV/mythtv/commit/ee55ad0cf47698e95617e11e657f0fa8a7f7bb4d
  Author: Roland Ernst <rcrernst at gmail.com>
  Date:   2022-05-12 (Thu, 12 May 2022)

  Changed paths:
    M mythtv/libs/libmythtv/decoders/avformatdecoder.cpp

  Log Message:
  -----------
  Merge branch 'master' of https://github.com/MythTV/mythtv


Compare: https://github.com/MythTV/mythtv/compare/f2bc5e08400d...ee55ad0cf476


More information about the mythtv-commits mailing list