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

Method handle_condition

sql/handler.cc:169–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167 {}
168
169 bool handle_condition(THD *thd,
170 uint sql_errno,
171 const char* sqlstate,
172 Sql_condition::enum_warning_level *level,
173 const char* msg,
174 Sql_condition ** cond_hdl) override
175 {
176 *cond_hdl= NULL;
177 if (non_existing_table_error(sql_errno))
178 {
179 m_handled_errors++;
180 return TRUE;
181 }
182
183 if (*level == Sql_condition::WARN_LEVEL_ERROR)
184 m_unhandled_errors++;
185 return FALSE;
186 }
187
188 bool safely_trapped_errors()
189 {

Callers

nothing calls this directly

Calls 1

non_existing_table_errorFunction · 0.85

Tested by

no test coverage detected