1
0
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:
Sergei Golubchik
2021-10-02 20:50:18 +02:00
parent f845a98354
commit a398fcbff6
63 changed files with 383 additions and 373 deletions

View File

@ -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();