You've already forked mariadb-connector-c
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:
@@ -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);
|
SET_CLIENT_ERROR(mysql, CR_OUT_OF_MEMORY, SQLSTATE_UNKNOWN, 0);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
is_maria= mariadb_connection(mysql);
|
||||||
}
|
}
|
||||||
end+= strlen(end) + 1;
|
end+= strlen(end) + 1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user