From bf7c5c591be0fb4b8f57da2f5a227cf35352f3bc Mon Sep 17 00:00:00 2001 From: Nadir Hamid Date: Tue, 11 Dec 2018 13:54:04 -0600 Subject: [PATCH] change my_bool to bool based on mysql 8.0.1 --- gwlib/dbpool_mysql.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gwlib/dbpool_mysql.c b/gwlib/dbpool_mysql.c index 37e5ba2..bd54d40 100644 --- a/gwlib/dbpool_mysql.c +++ b/gwlib/dbpool_mysql.c @@ -245,7 +245,7 @@ static int mysql_select(void *conn, const Octstr *sql, List *binds, List **res) case MYSQL_TYPE_TIMESTAMP: bind[i].buffer_type = field->type; bind[i].buffer = (char*)gw_malloc(sizeof(MYSQL_TIME)); - bind[i].is_null = gw_malloc(sizeof(my_bool)); + bind[i].is_null = gw_malloc(sizeof(bool)); bind[i].length = gw_malloc(sizeof(unsigned long)); break; default: @@ -253,7 +253,7 @@ static int mysql_select(void *conn, const Octstr *sql, List *binds, List **res) bind[i].buffer = gw_malloc(field->length); bind[i].buffer_length = field->length; bind[i].length = gw_malloc(sizeof(unsigned long)); - bind[i].is_null = gw_malloc(sizeof(my_bool)); + bind[i].is_null = gw_malloc(sizeof(bool)); break; } }