| 697 | } |
| 698 | |
| 699 | Sql_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 | |
| 724 | Sql_condition *Warning_info::push_warning(THD *thd, |
no test coverage detected