aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-mysqldb/mariadb.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/py-mysqldb/mariadb.patch')
-rw-r--r--community/py-mysqldb/mariadb.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/community/py-mysqldb/mariadb.patch b/community/py-mysqldb/mariadb.patch
new file mode 100644
index 0000000000..a2cbd8574b
--- /dev/null
+++ b/community/py-mysqldb/mariadb.patch
@@ -0,0 +1,13 @@
+diff --git a/_mysql.c b/_mysql.c
+index f081346..481617e 100644
+--- a/_mysql.c
++++ b/_mysql.c
+@@ -2002,7 +2002,7 @@ _mysql_ConnectionObject_ping(
+ int r, reconnect = -1;
+ if (!PyArg_ParseTuple(args, "|I", &reconnect)) return NULL;
+ check_connection(self);
+- if ( reconnect != -1 ) self->connection.reconnect = reconnect;
++ if ( reconnect != -1 ) mysql_options(&self->connection, MYSQL_OPT_RECONNECT, &reconnect);
+ Py_BEGIN_ALLOW_THREADS
+ r = mysql_ping(&(self->connection));
+ Py_END_ALLOW_THREADS