We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e9d759 commit 62c8c8cCopy full SHA for 62c8c8c
MySQLdb/_mysql.c
@@ -2643,6 +2643,15 @@ init_mysql(void)
2643
{
2644
PyObject *dict, *module, *emod, *edict;
2645
2646
+ if (mysql_library_init(0, NULL, NULL)) {
2647
+ PyErr_SetString(PyExc_ImportError, "_mysql: mysql_library_init failed");
2648
+#ifdef IS_PY3K
2649
+ return NULL;
2650
+#else
2651
+ return;
2652
+#endif
2653
+ }
2654
+
2655
#ifdef IS_PY3K
2656
if (PyType_Ready(&_mysql_ConnectionObject_Type) < 0)
2657
return NULL;
0 commit comments