summaryrefslogtreecommitdiff
path: root/sql/sql_load.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2020-03-05 19:19:57 +0100
committerSergei Golubchik <serg@mariadb.org>2020-03-31 17:42:34 +0200
commit0515577d128318e1b62511846d88d0c56226168d (patch)
tree6339b3083879f29ce04fd77f10b7c4d6050e49e9 /sql/sql_load.cc
parent045510cb92448ab54ff8832b1947707287975bae (diff)
downloadmariadb-git-0515577d128318e1b62511846d88d0c56226168d.tar.gz
cleanup: prepare "update_handler" for WITHOUT OVERLAPS
* rename to a generic name * move remaning initializations from query exec to prepare time * simplify/unify key handling in open_table_from_share and delayed * remove dead code * move tests where they belong
Diffstat (limited to 'sql/sql_load.cc')
-rw-r--r--sql/sql_load.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_load.cc b/sql/sql_load.cc
index efbbe28bcad..b52846c1390 100644
--- a/sql/sql_load.cc
+++ b/sql/sql_load.cc
@@ -652,8 +652,8 @@ int mysql_load(THD *thd, const sql_exchange *ex, TABLE_LIST *table_list,
{
if ((error= table_list->table->file->ha_rnd_init_with_error(0)))
goto err;
- table->file->prepare_for_insert();
}
+ table->file->prepare_for_insert();
thd_progress_init(thd, 2);
if (table_list->table->validate_default_values_of_unset_fields(thd))
{