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

Method push_warning

sql/sql_error.cc:699–721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

697}
698
699Sql_condition *Warning_info::push_warning(THD *thd,
700 const Sql_condition_identity *value,
701 const char *msg,
702 ulong current_row_number)
703{
704 Sql_condition *cond= NULL;
705
706 if (! m_read_only)
707 {
708 if (m_allow_unlimited_warnings ||
709 m_warn_list.elements() < thd->variables.max_error_count)
710 {
711 cond= new (& m_warn_root) Sql_condition(& m_warn_root, *value, msg,
712 current_row_number);
713 if (cond)
714 m_warn_list.push_back(cond);
715 }
716 m_warn_count[(uint) value->get_level()]++;
717 }
718
719 m_current_statement_warn_count++;
720 return cond;
721}
722
723
724Sql_condition *Warning_info::push_warning(THD *thd,

Callers 1

Calls 6

push_warningFunction · 0.85
get_levelMethod · 0.80
get_message_textMethod · 0.80
copy_opt_attributesMethod · 0.80
elementsMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected