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:
@ -419,7 +419,8 @@ bool Sql_cmd_resignal::execute(THD *thd)
|
||||
DBUG_RETURN(result);
|
||||
}
|
||||
|
||||
Sql_condition signaled_err(thd->mem_root, *signaled, signaled->message, 0);
|
||||
Sql_condition signaled_err(thd->mem_root, *signaled, signaled->message,
|
||||
da->current_row_for_warning());
|
||||
|
||||
if (m_cond)
|
||||
{
|
||||
|
Reference in New Issue
Block a user