| 8711 | }; |
| 8712 | |
| 8713 | bool |
| 8714 | Silence_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 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected