From a398fcbff6f73394135bc52d2197dc80a1f13fbf Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sat, 2 Oct 2021 20:50:18 +0200 Subject: MDEV-26635 ROW_NUMBER is not 0 for errors not caused because of rows --- sql/sql_error.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sql/sql_error.h') diff --git a/sql/sql_error.h b/sql/sql_error.h index ae33a53f80d..a1cc34a63ee 100644 --- a/sql/sql_error.h +++ b/sql/sql_error.h @@ -724,7 +724,7 @@ private: void inc_current_row_for_warning() { m_current_row_for_warning++; } /** Reset the current row counter. Start counting from the first row. */ - void reset_current_row_for_warning() { m_current_row_for_warning= 1; } + void reset_current_row_for_warning(int n) { m_current_row_for_warning= n; } /** Return the current counter value. */ ulong current_row_for_warning() const { return m_current_row_for_warning; } @@ -1148,8 +1148,8 @@ public: void inc_current_row_for_warning() { get_warning_info()->inc_current_row_for_warning(); } - void reset_current_row_for_warning() - { get_warning_info()->reset_current_row_for_warning(); } + void reset_current_row_for_warning(int n) + { get_warning_info()->reset_current_row_for_warning(n); } bool is_warning_info_read_only() const { return get_warning_info()->is_read_only(); } -- cgit v1.2.1