1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

MDEV-15330 Server crash or assertion `table->insert_values' failure in write_record upon LOAD DATA

copy the corresponding line from mysql_prepare_insert()
This commit is contained in:
Sergei Golubchik
2018-02-23 20:22:09 +01:00
parent fd240a10e3
commit 5c7a40e3cf
3 changed files with 27 additions and 0 deletions

View File

@@ -409,6 +409,13 @@ int mysql_load(THD *thd,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;