1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-08 14:02:17 +03:00

Fix for CONC-623:

If callback function returns a non zero return code, execute
will now abort with error CR_ERR_STMT_PARAM_CALLBACK.
This commit is contained in:
Georg Richter
2023-01-15 15:12:38 +01:00
parent 82fa150f8b
commit 5f6133653d
4 changed files with 74 additions and 7 deletions

View File

@@ -106,10 +106,11 @@ extern const char *mariadb_client_errors[]; /* Error messages */
#define CR_ERR_NET_READ 5013
#define CR_ERR_NET_WRITE 5014
#define CR_ERR_NET_UNCOMPRESS 5015
#define CR_ERR_STMT_PARAM_CALLBACK 5016
/* Always last, if you add new error codes please update the
value for CR_MARIADB_LAST_ERROR */
#define CR_MARIADB_LAST_ERROR CR_ERR_NET_UNCOMPRESS
#define CR_MARIADB_LAST_ERROR CR_ERR_STMT_PARAM_CALLBACK
#endif