diff options
author | Sergei Golubchik <serg@mariadb.org> | 2021-10-02 20:50:18 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2021-10-26 17:29:40 +0200 |
commit | a398fcbff6f73394135bc52d2197dc80a1f13fbf (patch) | |
tree | 01b6e59f9eccdf84c1ca03705b41385f93fe7137 /sql/sql_error.h | |
parent | f845a983541d058cf5940d8baee3f9af8a77bf4b (diff) | |
download | mariadb-git-a398fcbff6f73394135bc52d2197dc80a1f13fbf.tar.gz |
MDEV-26635 ROW_NUMBER is not 0 for errors not caused because of rows
Diffstat (limited to 'sql/sql_error.h')
-rw-r--r-- | sql/sql_error.h | 6 |
1 files changed, 3 insertions, 3 deletions
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(); } |