1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-05 13:16:09 +03:00

Merge branch '10.5' into 10.6

This commit is contained in:
Oleksandr Byelkin
2023-11-08 15:57:05 +01:00
381 changed files with 10233 additions and 5782 deletions

View File

@@ -548,6 +548,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)
{