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

Method has_sql_condition

sql/sql_error.cc:560–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558
559
560bool 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
574bool Warning_info::has_sql_condition(uint sql_errno) const
575{

Callers 2

executeMethod · 0.45
decide_logging_formatMethod · 0.45

Calls 2

get_message_textMethod · 0.80
get_sql_errnoMethod · 0.80

Tested by

no test coverage detected