[mythtv-commits] Ticket #13320: Python bindings not reconnecting to database after a long pause.
MythTV
noreply at mythtv.org
Sun Sep 9 18:07:19 UTC 2018
#13320: Python bindings not reconnecting to database after a long pause.
----------------------------------+--------------------------------
Reporter: sir-maniac | Owner: Raymond Wagner
Type: Bug Report - General | Status: new
Priority: minor | Milestone: needs_triage
Component: Bindings - Python | Version: Unspecified
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+--------------------------------
Comment (by sir-maniac):
Here's the patch for reference:
{{{
diff --git a/mythtv/bindings/python/MythTV/_conn_mysqldb.py
b/mythtv/bindings/python/MythTV/_conn_mysqldb.py
index 676d147..ae47969 100644
--- a/mythtv/bindings/python/MythTV/_conn_mysqldb.py
+++ b/mythtv/bindings/python/MythTV/_conn_mysqldb.py
@@ -34,7 +34,7 @@
super(LoggedCursor, self).__init__(connection)
self.log = None
self.ping = ref(self._ping121)
- if MySQLdb.version_info >= ('1','2','2'):
+ if MySQLdb.version_info[:3] >= (1, 2, 2):
self.ping = ref(self._ping122)
self.ping()
}}}
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13320#comment:2>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list