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

@ -591,6 +591,16 @@ private:
*/
bool has_sql_condition(const char *message_str, size_t message_length) const;
/**
Checks if Warning_info contains SQL-condition with the given error id
@param sql_errno SQL-condition error number
@return true if the Warning_info contains an SQL-condition with the given
error id.
*/
bool has_sql_condition(uint sql_errno) const;
/**
Reset the warning information. Clear all warnings,
the number of warnings, reset current row counter
@ -1131,6 +1141,9 @@ public:
bool has_sql_condition(const char *message_str, size_t message_length) const
{ return get_warning_info()->has_sql_condition(message_str, message_length); }
bool has_sql_condition(uint sql_errno) const
{ return get_warning_info()->has_sql_condition(sql_errno); }
void reset_for_next_command()
{ get_warning_info()->reset_for_next_command(); }