Make 'gb.db.mysql' compile with MySQL version < 5.7.11.

[GB.DB.MYSQL]
* BUG: Make 'gb.db.mysql' compile with MySQL version < 5.7.11.
This commit is contained in:
gambas 2020-01-25 06:48:19 +01:00
parent bb87e1885b
commit 9613341c41

View file

@ -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 >= 50636
#if MYSQL_VERSION_ID >= 50711
env = getenv("GB_DB_MYSQL_NOSSL");
if (env && strcmp(env, "0"))
{