MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Trigger_error_handler Class Reference

Public Member Functions

bool handle_condition (THD *thd, uint sql_errno, const char *sqlstate, Sql_condition::enum_warning_level level, const char *msg, Sql_condition **cond_hdl)

Detailed Description

Trigger_error_handler is intended to intercept and silence SQL conditions that might happen during trigger loading for SHOW statements. The potential SQL conditions are:

  • ER_PARSE_ERROR – this error is thrown if a trigger definition file is damaged or contains invalid CREATE TRIGGER statement. That should not happen in normal life.
  • ER_TRG_NO_DEFINER – this warning is thrown when we're loading a trigger created/imported in/from the version of MySQL, which does not support trigger definers.
  • ER_TRG_NO_CREATION_CTX – this warning is thrown when we're loading a trigger created/imported in/from the version of MySQL, which does not support trigger creation contexts.

Definition at line 3843 of file sql_show.cc.


The documentation for this class was generated from the following file: