mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-20 16:31:06 +00:00
CONC-667: Fix statement handling when unbuffered results are pending.
Resetting a statement will result in an error, if another (different) statement has a pending unbuffered result set (CR_COMMANDS_OUT_OF_SYNC). Freeing a statement result set will return an error, if the statement has no result set or was not executed (CR_STMT_NO_RESULT).
This commit is contained in:
@ -114,10 +114,11 @@ extern const char *mariadb_client_errors[]; /* Error messages */
|
||||
#define CR_BINLOG_ERROR 5021
|
||||
#define CR_BINLOG_INVALID_FILE 5022
|
||||
#define CR_BINLOG_SEMI_SYNC_ERROR 5023
|
||||
#define CR_STMT_NO_RESULT 5024
|
||||
|
||||
/* Always last, if you add new error codes please update the
|
||||
value for CR_MARIADB_LAST_ERROR */
|
||||
#define CR_MARIADB_LAST_ERROR CR_BINLOG_INVALID_FILE
|
||||
#define CR_MARIADB_LAST_ERROR CR_STMT_NO_RESULT
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user