Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
1.1.5
-
None
-
Posix
Description
If MariaDB Connector/Python was built with minimum required version of Connector/C, it still might fail during module initialization or when executing connect() method if an older unsupported Connector/C client library will be loaded from default location.
Instead of we should raise an exception during module initialization:
if (mysql_get_client_version() < MARIADB_PACKAGE_VERSION_ID) |
{
|
char errmsg[255]; |
 |
snprintf(errmsg, 254, "MariaDB Connector/Python was build with MariaDB Connector/C %s, " |
"while the loaded MariaDB Connector/C library has version %s.", |
MARIADB_PACKAGE_VERSION, mysql_get_client_info());
|
PyErr_SetString(PyExc_ImportError, errmsg);
|
goto error; |
}
|
|
Attachments
Issue Links
- causes
-
CONC-628 Version string cannot be split fully
- Closed