mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-10075: Provide index of error causing error in array INSERT
use existing Warning_info::m_current_row_for_warning instead of a newly introduced counter. But use m_current_row_for_warning to count rows also in the parser and during prepare.
This commit is contained in:
@ -673,7 +673,7 @@ Sql_condition *Warning_info::push_warning(THD *thd,
|
||||
m_warn_list.elements() < thd->variables.max_error_count)
|
||||
{
|
||||
cond= new (& m_warn_root) Sql_condition(& m_warn_root, *value, msg,
|
||||
thd->current_insert_index);
|
||||
m_current_row_for_warning);
|
||||
if (cond)
|
||||
m_warn_list.push_back(cond);
|
||||
}
|
||||
|
Reference in New Issue
Block a user