diff options
author | unknown <jimw@mysql.com> | 2005-02-22 16:39:21 -0800 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2005-02-22 16:39:21 -0800 |
commit | 7d4ea5cfc2c9288f9f3d75e4477f85db86e90313 (patch) | |
tree | 8a25c021a98aa2011d4e88525cb7455a924912f0 /extra | |
parent | c0cb1faa7cf59104bcc7a985b957c957e18bcdb6 (diff) | |
parent | 8776230074184a255e8df4c5c4eb45e66fc81fe0 (diff) | |
download | mariadb-git-7d4ea5cfc2c9288f9f3d75e4477f85db86e90313.tar.gz |
Merge
extra/perror.c:
Auto merged
sql/mysqld.cc:
Auto merged
sql/sql_acl.cc:
Merge change in warning message
sql/sql_parse.cc:
Hand-merge
Diffstat (limited to 'extra')
-rw-r--r-- | extra/perror.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/extra/perror.c b/extra/perror.c index b377b360b5c..6e632b20d96 100644 --- a/extra/perror.c +++ b/extra/perror.c @@ -245,16 +245,17 @@ int main(int argc,char *argv[]) msg = strerror(code); /* - Don't print message for not existing error messages or for - unknown errors. We test for 'Uknown Errors' just as an - extra safety for Netware + We don't print the OS error message if it is the same as the + unknown_error message we retrieved above, or it starts with + 'Unknown Error' (without regard to case). */ - if (msg && strcmp(msg, "Unknown Error") && + if (msg && + my_strnncoll(&my_charset_latin1, msg, 13, "Unknown Error", 13) && (!unknown_error || strcmp(msg, unknown_error))) { found=1; if (verbose) - printf("Error code %3d: %s\n",code,msg); + printf("OS error code %3d: %s\n",code,msg); else puts(msg); } @@ -269,7 +270,7 @@ int main(int argc,char *argv[]) else { if (verbose) - printf("MySQL error: %3d = %s\n",code,msg); + printf("MySQL error code %3d: %s\n",code,msg); else puts(msg); } |