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:
@ -339,7 +339,7 @@ Condition_information_item::get_value(THD *thd, const Sql_condition *cond)
|
||||
value= make_utf8_string_item(thd, &str);
|
||||
break;
|
||||
case ERROR_INDEX:
|
||||
value= new (thd->mem_root) Item_uint(thd, cond->error_index);
|
||||
value= new (thd->mem_root) Item_uint(thd, cond->m_error_index);
|
||||
}
|
||||
|
||||
DBUG_RETURN(value);
|
||||
|
Reference in New Issue
Block a user