diff options
author | unknown <ram@gw.mysql.r18.ru> | 2005-01-19 16:24:06 +0400 |
---|---|---|
committer | unknown <ram@gw.mysql.r18.ru> | 2005-01-19 16:24:06 +0400 |
commit | 86f45f067cf065a942727d39cefc7c82b757c8cc (patch) | |
tree | 9b8a3c01c9c3e08a1a6e297bf4bbd4770b2f0135 /extra/comp_err.c | |
parent | 894c9bd5349a6866fd74588d4aa60d3db0634e1c (diff) | |
download | mariadb-git-86f45f067cf065a942727d39cefc7c82b757c8cc.tar.gz |
ER_WARN_DATA_TRUNCATED replaced with WARN_DATA_TRUNCATED.
extra/comp_err.c:
WARN_PREFIX added.
Diffstat (limited to 'extra/comp_err.c')
-rw-r--r-- | extra/comp_err.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extra/comp_err.c b/extra/comp_err.c index a02eea4e510..baed28a0350 100644 --- a/extra/comp_err.c +++ b/extra/comp_err.c @@ -35,6 +35,7 @@ #define HEADER_LENGTH 32 /* Length of header in errmsg.sys */ #define DEFAULT_CHARSET_DIR "../sql/share/charsets" #define ER_PREFIX "ER_" +#define WARN_PREFIX "WARN_" static char *OUTFILE= (char*) "errmsg.sys"; static char *HEADERFILE= (char*) "mysqld_error.h"; static char *NAMEFILE= (char*) "mysqld_ername.h"; @@ -453,7 +454,7 @@ static int parse_input_file(const char *file_name, struct errors **top_error, DBUG_RETURN(0); continue; } - if (is_prefix(str, ER_PREFIX)) + if (is_prefix(str, ER_PREFIX) || is_prefix(str, WARN_PREFIX)) { if (!(current_error= parse_error_string(str, rcount))) { |