mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 11:10:58 +08:00
2
_mysql.c
2
_mysql.c
@ -1879,7 +1879,7 @@ _mysql_ConnectionObject_ping(
|
|||||||
if (!PyArg_ParseTuple(args, "|I", &reconnect)) return NULL;
|
if (!PyArg_ParseTuple(args, "|I", &reconnect)) return NULL;
|
||||||
check_connection(self);
|
check_connection(self);
|
||||||
if (reconnect != -1) {
|
if (reconnect != -1) {
|
||||||
my_bool recon = reconnect;
|
char recon = (char)reconnect;
|
||||||
mysql_options(&self->connection, MYSQL_OPT_RECONNECT, &recon);
|
mysql_options(&self->connection, MYSQL_OPT_RECONNECT, &recon);
|
||||||
}
|
}
|
||||||
Py_BEGIN_ALLOW_THREADS
|
Py_BEGIN_ALLOW_THREADS
|
||||||
|
Reference in New Issue
Block a user