diff options
author | Bjorn Munch <bjorn.munch@oracle.com> | 2011-08-22 14:42:12 +0200 |
---|---|---|
committer | Bjorn Munch <bjorn.munch@oracle.com> | 2011-08-22 14:42:12 +0200 |
commit | 6e60a071576e422aa6f9275d76209596ce63e4bf (patch) | |
tree | 0cd72c79e7e9cfaa06d322e514e282d54fb620dd /client | |
parent | 06bfd1476d97ed85c05cabb937d1b800b537f2ec (diff) | |
download | mariadb-git-6e60a071576e422aa6f9275d76209596ce63e4bf.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.cc | 6 |
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) { |