mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +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:
@@ -7978,7 +7978,6 @@ void mysql_parse(THD *thd, char *rawbuf, uint length,
|
||||
LEX *lex= thd->lex;
|
||||
|
||||
bool err= parse_sql(thd, parser_state, NULL, true);
|
||||
thd->current_insert_index= 0;
|
||||
|
||||
if (likely(!err))
|
||||
{
|
||||
|
Reference in New Issue
Block a user