mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-26635 ROW_NUMBER is not 0 for errors not caused because of rows
This commit is contained in:
@ -11102,7 +11102,7 @@ copy_data_between_tables(THD *thd, TABLE *from, TABLE *to,
|
||||
|
||||
if (ignore && !alter_ctx->fk_error_if_delete_row)
|
||||
to->file->extra(HA_EXTRA_IGNORE_DUP_KEY);
|
||||
thd->get_stmt_da()->reset_current_row_for_warning();
|
||||
thd->get_stmt_da()->reset_current_row_for_warning(1);
|
||||
restore_record(to, s->default_values); // Create empty record
|
||||
to->reset_default_fields();
|
||||
|
||||
|
Reference in New Issue
Block a user