mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
WL#751 Error message construction, backport
This commit is contained in:
@ -219,6 +219,10 @@ const char *client_errors[]=
|
||||
};
|
||||
#endif
|
||||
|
||||
const char** get_client_errmsgs()
|
||||
{
|
||||
return client_errors;
|
||||
}
|
||||
|
||||
/*
|
||||
Register client error messages for use with my_error().
|
||||
@ -232,7 +236,7 @@ const char *client_errors[]=
|
||||
|
||||
void init_client_errs(void)
|
||||
{
|
||||
(void) my_error_register(client_errors, CR_ERROR_FIRST, CR_ERROR_LAST);
|
||||
(void) my_error_register(get_client_errmsgs, CR_ERROR_FIRST, CR_ERROR_LAST);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user