| 5450 | { |
| 5451 | public: |
| 5452 | bool handle_condition(THD *thd, uint sql_errno, const char* sqlstate, |
| 5453 | Sql_condition::enum_warning_level *level, |
| 5454 | const char* msg, Sql_condition ** cond_hdl) override |
| 5455 | { |
| 5456 | if (sql_errno == ER_TRG_NO_DEFINER || sql_errno == ER_TRG_NO_CREATION_CTX |
| 5457 | || sql_errno == ER_PARSE_ERROR) |
| 5458 | return true; |
| 5459 | |
| 5460 | if (*level != Sql_condition::WARN_LEVEL_ERROR) |
| 5461 | return false; |
| 5462 | |
| 5463 | if (likely(!thd->get_stmt_da()->is_error())) |
| 5464 | thd->get_stmt_da()->set_error_status(sql_errno, msg, sqlstate, *cond_hdl); |
| 5465 | return true; // handled! |
| 5466 | } |
| 5467 | }; |
| 5468 | |
| 5469 |
nothing calls this directly
no test coverage detected