You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-08 14:02:17 +03:00
Fix for CONC-608: Replace server error codes
Since Connector/C is not able to retrieve error strings for server error codes, the following error codes were replaced: - ER_NET_PACKET_TOO_LARFE by CR_NET_PACKET_TOO_LARGE - ER_OUT_OF_RESOURCES by CR_OUT_OF_MEMORY - ER_NET_WRITE_ERROR by CR_ERR_NET_WRITE (new constant) - ER_NET_UNCOMPRESS_ERROR by CR_ERR_NET_UNCOMPRESS (new constant)
This commit is contained in:
@@ -1680,7 +1680,8 @@ int STDCALL mysql_stmt_prepare(MYSQL_STMT *stmt, const char *query, unsigned lon
|
||||
goto fail;
|
||||
|
||||
if (!is_multi && mysql->net.extension->multi_status == COM_MULTI_ENABLED)
|
||||
ma_multi_command(mysql, COM_MULTI_END);
|
||||
if (ma_multi_command(mysql, COM_MULTI_END))
|
||||
goto fail;
|
||||
|
||||
if (mysql->net.extension->multi_status > COM_MULTI_OFF)
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user