From 1ea5d01db84d68e45c2c25427fc70d8c28dbdc8c Mon Sep 17 00:00:00 2001 From: INADA Naoki Date: Thu, 21 Dec 2017 19:16:24 +0900 Subject: [PATCH] my_bool is removed from MySQL 8 Fixed #218 --- _mysql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_mysql.c b/_mysql.c index 5216fa5..014c2bd 100644 --- a/_mysql.c +++ b/_mysql.c @@ -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