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:
Bjorn Munch 2011-08-22 14:42:12 +02:00
parent 06bfd1476d
commit 6e60a07157

View file

@ -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)
{