diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/db.c | 8 | ||||
-rw-r--r-- | lib/db.h | 2 |
2 files changed, 9 insertions, 1 deletions
@@ -1376,11 +1376,19 @@ int cDbConnection::errorSql(cDbConnection* connection, const char* prefix, if (error == CR_SERVER_LOST || error == CR_SERVER_GONE_ERROR || +// for compatibility with newer versions of MariaBD library +#ifdef CR_INVALID_CONN_HANDLE error == CR_INVALID_CONN_HANDLE || +#endif error == CR_COMMANDS_OUT_OF_SYNC || error == CR_SERVER_LOST_EXTENDED || error == CR_STMT_CLOSED || +// for compatibility with newer versions of MariaBD library +#ifdef CR_CONN_UNKNOW_PROTOCOL error == CR_CONN_UNKNOW_PROTOCOL || +#else + error == CR_CONN_UNKNOWN_PROTOCOL || +#endif error == CR_UNSUPPORTED_PARAM_TYPE || error == CR_NO_PREPARE_STMT || error == CR_SERVER_HANDSHAKE_ERR || @@ -1296,7 +1296,7 @@ class cDbProcedure : public cDbService int created() { if (!connection || !connection->getMySql()) - return fail; + return no; cDbStatement stmt(connection); |