MCPcopy Create free account
hub / github.com/Tencent/phxsql / handle_condition

Method handle_condition

phx_percona/percona/sql/sql_acl.cc:8713–8738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8711};
8712
8713bool
8714Silence_routine_definer_errors::handle_condition(
8715 THD *thd,
8716 uint sql_errno,
8717 const char*,
8718 Sql_condition::enum_warning_level level,
8719 const char* msg,
8720 Sql_condition ** cond_hdl)
8721{
8722 *cond_hdl= NULL;
8723 if (level == Sql_condition::WARN_LEVEL_ERROR)
8724 {
8725 switch (sql_errno)
8726 {
8727 case ER_NONEXISTING_PROC_GRANT:
8728 /* Convert the error into a warning. */
8729 push_warning(thd, Sql_condition::WARN_LEVEL_WARN,
8730 sql_errno, msg);
8731 return TRUE;
8732 default:
8733 is_grave= TRUE;
8734 }
8735 }
8736
8737 return FALSE;
8738}
8739
8740
8741/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected