Mailing List Archive

[MythTV/mythtv] b2e9c6: Fix mysql cursor class to handle bytearrays
Branch: refs/heads/master
Home: https://github.com/MythTV/mythtv
Commit: b2e9c6a44233570704554894bf45e01bfa8e26a7
https://github.com/MythTV/mythtv/commit/b2e9c6a44233570704554894bf45e01bfa8e26a7
Author: Roland Ernst <rcrernst@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


_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits