| 558 | |
| 559 | |
| 560 | bool Warning_info::has_sql_condition(const char *message_str, size_t message_length) const |
| 561 | { |
| 562 | Diagnostics_area::Sql_condition_iterator it(m_warn_list); |
| 563 | const Sql_condition *err; |
| 564 | |
| 565 | while ((err= it++)) |
| 566 | { |
| 567 | if (strncmp(message_str, err->get_message_text(), message_length) == 0) |
| 568 | return true; |
| 569 | } |
| 570 | |
| 571 | return false; |
| 572 | } |
| 573 | |
| 574 | bool Warning_info::has_sql_condition(uint sql_errno) const |
| 575 | { |
no test coverage detected