Mailing List Archive

[MythTV/mythtv] b2e9c6: Fix mysql cursor class to handle bytearrays
Branch: refs/heads/master
Commit: b2e9c6a44233570704554894bf45e01bfa8e26a7
Author: Roland Ernst <>
Date: 2020-05-10 (Sun, 10 May 2020)

Changed paths:
M mythtv/bindings/python/MythTV/

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

mythtv-commits mailing list