1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00
* remove dead code
* simplify the check for table->s->next_number_index
* misc
This commit is contained in:
Sergei Golubchik
2024-04-26 16:27:29 +02:00
parent 947eeaa6dc
commit 4f5dea43df
21 changed files with 683 additions and 135 deletions

View File

@ -1881,7 +1881,7 @@ int write_record(THD *thd, TABLE *table, COPY_INFO *info, select_result *sink)
was used. This ensures that we don't get a problem when the
whole range of the key has been used.
*/
if (info->handle_duplicates == DUP_REPLACE && table->next_number_field &&
if (info->handle_duplicates == DUP_REPLACE &&
key_nr == table->s->next_number_index && insert_id_for_cur_row > 0)
goto err;
if (table->file->has_dup_ref())