mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-26635 ROW_NUMBER is not 0 for errors not caused because of rows
This commit is contained in:
@ -501,7 +501,7 @@ Diagnostics_area::disable_status()
|
||||
Warning_info::Warning_info(ulonglong warn_id_arg,
|
||||
bool allow_unlimited_warnings, bool initialize)
|
||||
:m_current_statement_warn_count(0),
|
||||
m_current_row_for_warning(1),
|
||||
m_current_row_for_warning(0),
|
||||
m_warn_id(warn_id_arg),
|
||||
m_error_condition(NULL),
|
||||
m_allow_unlimited_warnings(allow_unlimited_warnings),
|
||||
@ -558,7 +558,7 @@ void Warning_info::clear(ulonglong new_id)
|
||||
free_memory();
|
||||
memset(m_warn_count, 0, sizeof(m_warn_count));
|
||||
m_current_statement_warn_count= 0;
|
||||
m_current_row_for_warning= 1; /* Start counting from the first row */
|
||||
m_current_row_for_warning= 0;
|
||||
clear_error_condition();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user