MCPcopy Create free account
hub / github.com/MariaDB/server / embedded_error_handler

Function embedded_error_handler

libmysqld/lib_sql.cc:67–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65*/
66
67static void embedded_error_handler(uint error, const char *str, myf MyFlags)
68{
69 DBUG_ENTER("embedded_error_handler");
70
71 /*
72 If current_thd is NULL, it means restore_global has been called and
73 thread is in client context, then call client error handler else call
74 server error handler.
75 */
76 DBUG_RETURN(current_thd ? my_message_sql(error, str, MyFlags):
77 my_message_stderr(error, str, MyFlags));
78}
79
80/*
81 Reads error information from the MYSQL_DATA and puts

Callers

nothing calls this directly

Calls 2

my_message_sqlFunction · 0.85
my_message_stderrFunction · 0.85

Tested by

no test coverage detected