diff options
| author | Sergei Golubchik <serg@mariadb.org> | 2021-10-02 20:50:18 +0200 |
|---|---|---|
| committer | Sergei Golubchik <serg@mariadb.org> | 2021-10-26 17:29:40 +0200 |
| commit | a398fcbff6f73394135bc52d2197dc80a1f13fbf (patch) | |
| tree | 01b6e59f9eccdf84c1ca03705b41385f93fe7137 /sql/sql_load.cc | |
| parent | f845a983541d058cf5940d8baee3f9af8a77bf4b (diff) | |
| download | mariadb-git-a398fcbff6f73394135bc52d2197dc80a1f13fbf.tar.gz | |
MDEV-26635 ROW_NUMBER is not 0 for errors not caused because of rows
Diffstat (limited to 'sql/sql_load.cc')
| -rw-r--r-- | sql/sql_load.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_load.cc b/sql/sql_load.cc index 2f1ee0b11bd..fe574db528f 100644 --- a/sql/sql_load.cc +++ b/sql/sql_load.cc @@ -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)) |
