mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Added new range of MariaDB error messages, starting from 3000
This is done by splitting variables.errmsg and locale.errmsg to variables.errmsg_extra and locale.errmsg_extra The ER() macros in unireg.h now looks more complex than before, but this isn't critical as most usage of them are with constants and the compiler will remove most of the test code.
This commit is contained in:
@@ -295,7 +295,7 @@ handler *get_ha_partition(partition_info *part_info)
|
||||
static const char **handler_errmsgs;
|
||||
|
||||
C_MODE_START
|
||||
static const char **get_handler_errmsgs()
|
||||
static const char **get_handler_errmsgs(int nr)
|
||||
{
|
||||
return handler_errmsgs;
|
||||
}
|
||||
@@ -386,12 +386,10 @@ int ha_init_errors(void)
|
||||
*/
|
||||
static int ha_finish_errors(void)
|
||||
{
|
||||
const char **errmsgs;
|
||||
|
||||
/* Allocate a pointer array for the error message strings. */
|
||||
if (! (errmsgs= my_error_unregister(HA_ERR_FIRST, HA_ERR_LAST)))
|
||||
return 1;
|
||||
my_free(errmsgs);
|
||||
my_error_unregister(HA_ERR_FIRST, HA_ERR_LAST);
|
||||
my_free(handler_errmsgs);
|
||||
handler_errmsgs= 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user