From d8c3f2263f3deaadff957a0047460e8058cffccf Mon Sep 17 00:00:00 2001 From: Sergey Glukhov Date: Thu, 15 Oct 2009 17:23:43 +0500 Subject: WL#751 Error message construction, backport --- libmysql/errmsg.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libmysql') diff --git a/libmysql/errmsg.c b/libmysql/errmsg.c index 95ee6862aa8..6e7f3ef48d3 100644 --- a/libmysql/errmsg.c +++ b/libmysql/errmsg.c @@ -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); } -- cgit v1.2.1