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

Method remove_marked_sql_conditions

sql/sql_error.cc:658–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

656
657
658void Warning_info::remove_marked_sql_conditions()
659{
660 List_iterator_fast<Sql_condition> it(m_marked_sql_conditions);
661 Sql_condition *cond;
662
663 while ((cond= it++))
664 {
665 m_warn_list.remove(cond);
666 m_warn_count[cond->get_level()]--;
667 m_current_statement_warn_count--;
668 if (cond == m_error_condition)
669 m_error_condition= NULL;
670 }
671
672 m_marked_sql_conditions.empty();
673}
674
675
676bool Warning_info::is_marked_for_removal(const Sql_condition *cond) const

Callers 2

executeMethod · 0.45
exit_handlerMethod · 0.45

Calls 3

get_levelMethod · 0.80
removeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected