diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2022-12-05 18:04:23 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2022-12-05 18:04:23 +0200 |
commit | e55397a46d38c008d877a1b04a88d07b21a555b6 (patch) | |
tree | f0ddcde58c82c2869c30926efbe50d43491c7e8a /sql/sql_delete.cc | |
parent | 0a7d85c97f6dd68f78ecb3e7074043ff2d4c24fc (diff) | |
parent | dd20a43c6cb59a2ba69124cf51e22e08ca16f858 (diff) | |
download | mariadb-git-e55397a46d38c008d877a1b04a88d07b21a555b6.tar.gz |
Merge 10.5 into 10.6
Diffstat (limited to 'sql/sql_delete.cc')
-rw-r--r-- | sql/sql_delete.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc index 2bbf9c7aca7..4c679267456 100644 --- a/sql/sql_delete.cc +++ b/sql/sql_delete.cc @@ -704,6 +704,10 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds, { table->use_all_columns(); table->rpl_write_set= table->write_set; + // Initialize autoinc. + // We don't set next_number_field here, as it is handled manually. + if (table->found_next_number_field) + table->file->info(HA_STATUS_AUTO); } else { |