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

Workaround for MDEV-35935

If the server returns an error packet without error number
(and message) we set errno=CR_ERR_MISSING_ERROR_INFO (5026)
This commit is contained in:
Georg Richter
2025-02-11 11:28:56 +01:00
parent 28ae227e80
commit 4877093937
4 changed files with 78 additions and 1 deletions

View File

@@ -115,10 +115,11 @@ extern const char *mariadb_client_errors[]; /* Error messages */
#define CR_BINLOG_INVALID_FILE 5022
#define CR_BINLOG_SEMI_SYNC_ERROR 5023
#define CR_INVALID_CLIENT_FLAG 5024
#define CR_ERR_MISSING_ERROR_INFO 5026
/* Always last, if you add new error codes please update the
value for CR_MARIADB_LAST_ERROR */
#define CR_MARIADB_LAST_ERROR CR_INVALID_CLIENT_FLAG
#define CR_MARIADB_LAST_ERROR CR_ERR_MISSING_ERROR_INFO
#endif