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
commit6e60a071576e422aa6f9275d76209596ce63e4bf (patch)
tree0cd72c79e7e9cfaa06d322e514e282d54fb620dd /client
parent06bfd1476d97ed85c05cabb937d1b800b537f2ec (diff)
downloadmariadb-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.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)
{