Fix for MySQL 8 client lib support

merge/2021-11-19
kaetemi 3 years ago
parent 41b4ec6bf3
commit 1e923d03ee
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -629,7 +629,11 @@ void sqlInit ()
nlerror ("mysql_init() failed"); nlerror ("mysql_init() failed");
} }
#if LIBMYSQL_VERSION_ID < 80000
my_bool opt = true; my_bool opt = true;
#else
bool opt = true;
#endif
if (mysql_options (db, MYSQL_OPT_RECONNECT, &opt)) if (mysql_options (db, MYSQL_OPT_RECONNECT, &opt))
{ {
mysql_close(db); mysql_close(db);

Loading…
Cancel
Save