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

Method copy_non_errors_from_wi

sql/sql_error.cc:628–645  ·  view source on GitHub ↗

Copy Sql_conditions that are not WARN_LEVEL_ERROR from the source Warning_info to the current Warning_info. @param thd Thread context. @param sp_wi Stored-program Warning_info @param thd Thread context. @param src_wi Warning_info to copy from. */

Source from the content-addressed store, hash-verified

626 @param src_wi Warning_info to copy from.
627*/
628void Diagnostics_area::copy_non_errors_from_wi(THD *thd,
629 const Warning_info *src_wi)
630{
631 Sql_condition_iterator it(src_wi->m_warn_list);
632 const Sql_condition *cond;
633 Warning_info *wi= get_warning_info();
634
635 while ((cond= it++))
636 {
637 if (cond->get_level() == Sql_condition::WARN_LEVEL_ERROR)
638 continue;
639
640 Sql_condition *new_condition= wi->push_warning(thd, cond);
641
642 if (src_wi->is_marked_for_removal(cond))
643 wi->mark_condition_for_removal(new_condition);
644 }
645}
646
647
648void Warning_info::mark_sql_conditions_for_removal()

Callers

nothing calls this directly

Calls 4

get_levelMethod · 0.80
is_marked_for_removalMethod · 0.80
push_warningMethod · 0.45

Tested by

no test coverage detected