From 1e7d80c8a194069d036bff322cd0914c3a54db8b Mon Sep 17 00:00:00 2001 From: gambas Date: Sat, 25 Jan 2020 07:15:29 +0100 Subject: [PATCH] Make 'gb.db.mysql' compile with MySQL version < 8.0.0. [GB.DB.MYSQL] * BUG: Make 'gb.db.mysql' compile with MySQL version < 8.0.0. --- gb.db.mysql/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gb.db.mysql/src/main.c b/gb.db.mysql/src/main.c index 02701164d..6c6edd247 100644 --- a/gb.db.mysql/src/main.c +++ b/gb.db.mysql/src/main.c @@ -766,7 +766,7 @@ static int open_database(DB_DESC *desc, DB_DATABASE *db) timeout = db->timeout; mysql_options(conn, MYSQL_OPT_CONNECT_TIMEOUT, &timeout); - #if MYSQL_VERSION_ID >= 50711 + #if MYSQL_VERSION_ID >= 80000 env = getenv("GB_DB_MYSQL_NOSSL"); if (env && strcmp(env, "0")) {