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

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
This commit is contained in:
Eugene Kosov
2018-04-19 22:23:14 +03:00
committed by Sergei Golubchik
parent 7d42135959
commit 133cfe39f1
4 changed files with 20 additions and 12 deletions

View File

@@ -26,3 +26,11 @@ id x current
1 2 0
1 3 1
drop table t;
# MDEV-15645 Assertion `table->insert_values' failed in write_record upon REPLACE into a view with underlying versioned table
create or replace table t1 (a int, b int, primary key (a), unique(b)) with system versioning;
insert into t1 values (1,1);
create or replace table t2 (c int);
create or replace view v as select t1.* from t1 join t2;
replace into v (a, b) select a, b from t1;
drop database test;
create database test;