Commit 6e60a071 authored by Bjorn Munch's avatar Bjorn Munch

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.
parent 06bfd147
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment