MySQL 8.4.2
Source Code Documentation
|
This class may inherited and passed to parse() in order to handle conditions raised by the server. More...
#include <services.h>
Public Member Functions | |
virtual bool | handle (int sql_errno, const char *sqlstate, const char *message)=0 |
This function will be called by the server via this API before raising a condition. More... | |
virtual | ~Condition_handler ()=0 |
This class may inherited and passed to parse() in order to handle conditions raised by the server.
|
pure virtualdefault |
|
pure virtual |
This function will be called by the server via this API before raising a condition.
The Condition_handler subclass may then decide to handle the condition by returning true, in which case the server does not raise it.
sql_errno | The condition number. |
sqlstate | The SQLSTATE, allocated in the server. |
message | The condition's message, allocated in the server. |
true | The condition is handled entirely by this object. |
false | The condition is not handled. |
Implemented in Parse_error_recorder.