summaryrefslogtreecommitdiff
path: root/sql/sql_load.cc
diff options
context:
space:
mode:
authorEugene Kosov <claprix@yandex.ru>2018-04-19 22:23:14 +0300
committerSergei Golubchik <serg@mariadb.org>2018-06-30 16:12:28 +0200
commit133cfe39f1872fd95d65c66b9c51181246454cd1 (patch)
treed3a1706115121a0578f67aa2f0304f1fb3f81bfa /sql/sql_load.cc
parent7d42135959ae40d0812a0efd8513fb28e1ed5e35 (diff)
downloadmariadb-git-133cfe39f1872fd95d65c66b9c51181246454cd1.tar.gz
MDEV-15645 Assertion `table->insert_values' failed in write_record upon REPLACE into a view with underlying versioned table
Right temporary storage for system versioning operations is table->record[2], not table->insert_values Closes #712
Diffstat (limited to 'sql/sql_load.cc')
-rw-r--r--sql/sql_load.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/sql/sql_load.cc b/sql/sql_load.cc
index cc5a5c7c794..ddb5029c78a 100644
--- a/sql/sql_load.cc
+++ b/sql/sql_load.cc
@@ -431,13 +431,6 @@ int mysql_load(THD *thd, const sql_exchange *ex, TABLE_LIST *table_list,
is_concurrent= (table_list->lock_type == TL_WRITE_CONCURRENT_INSERT);
#endif
- if (table->versioned(VERS_TIMESTAMP) && handle_duplicates == DUP_REPLACE)
- {
- // Additional memory may be required to create historical items.
- if (table_list->set_insert_values(thd->mem_root))
- DBUG_RETURN(TRUE);
- }
-
if (!fields_vars.elements)
{
Field_iterator_table_ref field_iterator;