[mythtv-commits] [MythTV/mythtv] b2e9c6: Fix mysql cursor class to handle bytearrays

rcrdnalor noreply at github.com
Sun May 10 10:23:43 UTC 2020

  Branch: refs/heads/master
  Home:   https://github.com/MythTV/mythtv
  Commit: b2e9c6a44233570704554894bf45e01bfa8e26a7
  Author: Roland Ernst <rcrernst at gmail.com>
  Date:   2020-05-10 (Sun, 10 May 2020)

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

  Log Message:
  Fix mysql cursor class to handle bytearrays

Newer Python MySQLdb modules call 'cursor.execute()' multiple times
from 'cursor.executemany()'.
With python3 and python3-MySQLdb > 1.4.0 these call-backs containing
a query are bytearrays, resulting in a traceback in the '_sanitize' method.

Note: This '_sanitize' method is only needed when creating a query within
the Python Bindings, but not necessary when python-mysqldb itself calls the
cursor.execute() method.

Fixes #13614

More information about the mythtv-commits mailing list