mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
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.
This commit is contained in:
parent
06bfd1476d
commit
6e60a07157
1 changed files with 3 additions and 3 deletions
|
@ -4732,10 +4732,10 @@ 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)
|
||||
{
|
||||
struct st_match_err *to= saved_expected_errors.err;
|
||||
|
|
Loading…
Reference in a new issue