1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Merge branch '10.4' into 10.5

This commit is contained in:
Oleksandr Byelkin
2023-11-08 12:59:00 +01:00
396 changed files with 10324 additions and 5797 deletions

View File

@ -549,6 +549,18 @@ bool Warning_info::has_sql_condition(const char *message_str, size_t message_len
return false;
}
bool Warning_info::has_sql_condition(uint sql_errno) const
{
Diagnostics_area::Sql_condition_iterator it(m_warn_list);
const Sql_condition *err;
while ((err = it++))
{
if (err->get_sql_errno() == sql_errno)
return true;
}
return false;
}
void Warning_info::clear(ulonglong new_id)
{