MCPcopy Create free account
hub / github.com/MariaDB/server / handle_condition

Method handle_condition

sql/sql_show.cc:5452–5466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5450{
5451public:
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

Callers

nothing calls this directly

Calls 3

get_stmt_daMethod · 0.80
is_errorMethod · 0.45
set_error_statusMethod · 0.45

Tested by

no test coverage detected