MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / has_sql_condition

Method has_sql_condition

sql/sql_error.cc:584–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

582
583
584bool Warning_info::has_sql_condition(const char *message_str,
585 ulong message_length) const
586{
587 Diagnostics_area::Sql_condition_iterator it(m_warn_list);
588 const Sql_condition *err;
589
590 while ((err= it++))
591 {
592 if (strncmp(message_str, err->get_message_text(), message_length) == 0)
593 return true;
594 }
595
596 return false;
597}
598
599
600void Warning_info::clear(ulonglong new_id)

Callers 1

validate_comment_lengthFunction · 0.45

Calls 1

get_message_textMethod · 0.80

Tested by

no test coverage detected