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

@ -659,6 +659,7 @@ int mysql_load(THD *thd, const sql_exchange *ex, TABLE_LIST *table_list,
table->copy_blobs=1;
thd->abort_on_warning= !ignore && thd->is_strict_mode();
thd->get_stmt_da()->reset_current_row_for_warning(1);
bool create_lookup_handler= handle_duplicates != DUP_ERROR;
if ((table_list->table->file->ha_table_flags() & HA_DUPLICATE_POS))