1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

cleanup: prepare_for_insert() -> prepare_for_modify()

make handler::prepare_for_insert() to be called to prepare
the handler for writes, INSERT/UPDATE/DELETE.
This commit is contained in:
Sergei Golubchik
2024-07-18 14:40:15 +02:00
parent 0e2b9e7621
commit f2512c0fa8
8 changed files with 42 additions and 33 deletions

View File

@@ -12333,7 +12333,7 @@ copy_data_between_tables(THD *thd, TABLE *from, TABLE *to,
from->file->column_bitmaps_signal();
to->file->prepare_for_insert(0);
to->file->prepare_for_modify(true, false);
DBUG_ASSERT(to->file->inited == handler::NONE);
/* Tell handler that we have values for all columns in the to table */