my_bool is removed from MySQL 8

Fixed #218
This commit is contained in:
INADA Naoki
2017-12-21 19:16:24 +09:00
parent b10ecd0b46
commit 1ea5d01db8

View File

@ -1879,7 +1879,7 @@ _mysql_ConnectionObject_ping(
if (!PyArg_ParseTuple(args, "|I", &reconnect)) return NULL;
check_connection(self);
if (reconnect != -1) {
my_bool recon = reconnect;
char recon = (char)reconnect;
mysql_options(&self->connection, MYSQL_OPT_RECONNECT, &recon);
}
Py_BEGIN_ALLOW_THREADS