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. */
| 626 | @param src_wi Warning_info to copy from. |
| 627 | */ |
| 628 | void 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 | |
| 648 | void Warning_info::mark_sql_conditions_for_removal() |
nothing calls this directly
no test coverage detected