mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-26635 ROW_NUMBER is not 0 for errors not caused because of rows
This commit is contained in:
@ -842,7 +842,7 @@ bool mysql_insert(THD *thd, TABLE_LIST *table_list,
|
||||
switch_to_nullable_trigger_fields(*values, table);
|
||||
}
|
||||
its.rewind ();
|
||||
thd->get_stmt_da()->reset_current_row_for_warning();
|
||||
thd->get_stmt_da()->reset_current_row_for_warning(1);
|
||||
|
||||
/* Restore the current context. */
|
||||
ctx_state.restore_state(context, table_list);
|
||||
@ -1684,6 +1684,8 @@ int mysql_prepare_insert(THD *thd, TABLE_LIST *table_list,
|
||||
ctx_state.restore_state(context, table_list);
|
||||
}
|
||||
|
||||
thd->get_stmt_da()->reset_current_row_for_warning(1);
|
||||
|
||||
if (res)
|
||||
DBUG_RETURN(res);
|
||||
|
||||
|
Reference in New Issue
Block a user