diff options
author | Sergei Golubchik <serg@mariadb.org> | 2022-01-21 12:40:20 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2022-01-21 16:02:34 +0100 |
commit | 4504e6d14e71f53043c75b80e83f25938ac63bb1 (patch) | |
tree | b1c701b46ea0345200c0629dd54eb096db48c059 /include | |
parent | c9beef43154a199bfcd9f71049c011a2ed77ca74 (diff) | |
download | mariadb-git-4504e6d14e71f53043c75b80e83f25938ac63bb1.tar.gz |
test cases for MySQL bugs
also fix a comment, and update a macro just in case
Diffstat (limited to 'include')
-rw-r--r-- | include/errmsg.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/errmsg.h b/include/errmsg.h index c0c4cfc58be..bd086bba05b 100644 --- a/include/errmsg.h +++ b/include/errmsg.h @@ -36,8 +36,9 @@ extern const char *client_errors[]; /* Error messages */ #define CR_MIN_ERROR 2000 /* For easier client code */ #define CR_MAX_ERROR 2999 #if !defined(ER) -#define ER(X) (((X) >= CR_ERROR_FIRST && (X) <= CR_ERROR_LAST)? \ - client_errors[(X)-CR_ERROR_FIRST]: client_errors[CR_UNKNOWN_ERROR]) +#define ER(X) (((X) >= CR_ERROR_FIRST && (X) <= CR_ERROR_LAST) \ + ? client_errors[(X)-CR_ERROR_FIRST] \ + : client_errors[CR_UNKNOWN_ERROR-CR_ERROR_FIRST]) #endif #define CLIENT_ERRMAP 2 /* Errormap used by my_error() */ |