fix(db): compat MariaDB Connector/C - definit CR_INVALID_CONN_HANDLE (corrige le build)
This commit is contained in:
@@ -23,4 +23,11 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <mysql.h>
|
#include <mysql.h>
|
||||||
|
|
||||||
|
// SylvaniaCore/MariaDB compat: CR_INVALID_CONN_HANDLE is a MySQL-only client error
|
||||||
|
// code (value 2048 upstream), absent from MariaDB Connector/C errmsg.h. Define it so
|
||||||
|
// the connection-loss switch in MySQLConnection.cpp builds against MariaDB.
|
||||||
|
#ifndef CR_INVALID_CONN_HANDLE
|
||||||
|
#define CR_INVALID_CONN_HANDLE 2048
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // MySQLWorkaround_h__
|
#endif // MySQLWorkaround_h__
|
||||||
|
|||||||
Reference in New Issue
Block a user