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.
This commit is contained in:
gambas 2020-01-25 07:15:29 +01:00
parent 9613341c41
commit 1e7d80c8a1

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