diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2022-08-10 13:12:32 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2022-08-10 13:12:32 +0200 |
commit | 65a963f755b1393bfbc82c7b71b0164070250b19 (patch) | |
tree | 82eba85dc09a2d70f35445e107a949c8f9489c8c /sql/sql_error.h | |
parent | fbfd44be3ca9dd22d6da543325b72907ab795fa8 (diff) | |
parent | c442e1ae21edc1f63906ac6101f1e989b589846f (diff) | |
download | mariadb-git-65a963f755b1393bfbc82c7b71b0164070250b19.tar.gz |
Merge branch '10.6' into 10.7
Diffstat (limited to 'sql/sql_error.h')
-rw-r--r-- | sql/sql_error.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/sql_error.h b/sql/sql_error.h index d9d7f420baa..d7c29c5f9a4 100644 --- a/sql/sql_error.h +++ b/sql/sql_error.h @@ -725,6 +725,13 @@ private: /** Reset the current row counter. Start counting from the first row. */ void reset_current_row_for_warning(int n) { m_current_row_for_warning= n; } + ulong set_current_row_for_warning(ulong row) + { + ulong old_row= m_current_row_for_warning; + m_current_row_for_warning= row; + return old_row; + } + /** Return the current counter value. */ ulong current_row_for_warning() const { return m_current_row_for_warning; } @@ -1139,6 +1146,9 @@ public: void opt_clear_warning_info(ulonglong query_id) { get_warning_info()->opt_clear(query_id); } + long set_current_row_for_warning(long row) + { return get_warning_info()->set_current_row_for_warning(row); } + ulong current_row_for_warning() const { return get_warning_info()->current_row_for_warning(); } |