summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorBjorn Munch <bjorn.munch@oracle.com>2011-08-22 14:42:12 +0200
committerBjorn Munch <bjorn.munch@oracle.com>2011-08-22 14:42:12 +0200
commit7dc28845ca193e544dad5a96c538681707c7563b (patch)
tree0cd72c79e7e9cfaa06d322e514e282d54fb620dd /client
parent24bce124469f6aa1361b2f1675faa436e95811b5 (diff)
downloadmariadb-git-7dc28845ca193e544dad5a96c538681707c7563b.tar.gz
Bug #12793170 MYSQLTEST: PROVIDE ACCESS TO ERROR NAMES THROUGH NUMERIC
CODES AND VICE VERSA Followup: Some statement may give errors not in the list, map these to "<Unknown>" rather than failing.
Diffstat (limited to 'client')
-rw-r--r--client/mysqltest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/mysqltest.cc b/client/mysqltest.cc
index 93d475cbf7e..903f6a024f7 100644
--- a/client/mysqltest.cc
+++ b/client/mysqltest.cc
@@ -4732,9 +4732,9 @@ const char *get_errname_from_code (uint error_code)
DBUG_RETURN(e->name);
}
}
- die("Unknown SQL error code '%d'", error_code);
-}
-
+ /* Apparently, errors without known names may occur */
+ DBUG_RETURN("<Unknown>");
+}
void do_get_errcodes(struct st_command *command)
{