1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

deal with errno out of range when reading it from the master

sql/slave.cc:
  print expected error number
sql/unireg.h:
  sanity check for errno range in ER(X)
This commit is contained in:
unknown
2001-05-31 13:56:57 -06:00
parent 714640bfb9
commit 18da1d3f31
2 changed files with 6 additions and 4 deletions

View File

@ -37,7 +37,8 @@
#define SHAREDIR "share/"
#endif
#define ER(X) errmesg[(X)-1000]
#define ER(X) ((X) >= 1000 && (X) < ER_ERROR_MESSAGES + 1000) ? \
errmesg[(X)-1000] : "Invalid error code"
#define ERRMAPP 1 /* Errormap f|r my_error */
#define LIBLEN FN_REFLEN-FN_LEN /* Max l{ngd p} dev */