File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Original file line number Diff line number Diff line change @@ -29,6 +29,11 @@ PERFORMANCE OF THIS SOFTWARE.
29
29
#include "mysql.h"
30
30
#include "mysqld_error.h"
31
31
32
+ #if MYSQL_VERSION_ID >= 80000
33
+ // https://github.com/mysql/mysql-server/commit/eb821c023cedc029ca0b06456dfae365106bee84
34
+ #define my_bool _Bool
35
+ #endif
36
+
32
37
#include "Python.h"
33
38
#if PY_MAJOR_VERSION >= 3
34
39
#define IS_PY3K
@@ -1879,7 +1884,7 @@ _mysql_ConnectionObject_ping(
1879
1884
if (!PyArg_ParseTuple (args , "|I" , & reconnect )) return NULL ;
1880
1885
check_connection (self );
1881
1886
if (reconnect != -1 ) {
1882
- char recon = (char )reconnect ;
1887
+ my_bool recon = (my_bool )reconnect ;
1883
1888
mysql_options (& self -> connection , MYSQL_OPT_RECONNECT , & recon );
1884
1889
}
1885
1890
Py_BEGIN_ALLOW_THREADS
You can’t perform that action at this time.
0 commit comments