mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
23 lines
729 B
Diff
23 lines
729 B
Diff
diff --git a/_mysql.c b/_mysql.c
|
|
index f081346..1c434d3 100644
|
|
--- a/_mysql.c
|
|
+++ b/_mysql.c
|
|
@@ -40,8 +40,6 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
#include "structmember.h"
|
|
#if defined(MS_WINDOWS)
|
|
#include <config-win.h>
|
|
-#else
|
|
-#include "my_config.h"
|
|
#endif
|
|
#include "mysql.h"
|
|
#include "mysqld_error.h"
|
|
@@ -2002,7 +2000,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
|