1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

use mariadb_connection() to detect whether the server is MariaDB

This commit is contained in:
Sergei Golubchik
2021-12-25 17:23:18 +01:00
parent b2db9b91e7
commit 43b60edc92

View File

@@ -1557,6 +1557,7 @@ MYSQL *mthd_my_real_connect(MYSQL *mysql, const char *host, const char *user,
SET_CLIENT_ERROR(mysql, CR_OUT_OF_MEMORY, SQLSTATE_UNKNOWN, 0);
goto error;
}
is_maria= mariadb_connection(mysql);
}
end+= strlen(end) + 1;