1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-14785 SYSTEM_INVISIBLE behaviour not consistent

Hide INVISIBLE_SYSTEM columns from writes and from fix_vcol_expr().
This commit is contained in:
Sergei Golubchik
2018-02-10 20:34:18 +01:00
parent 34ee747f55
commit d0f5e56a20
5 changed files with 159 additions and 12 deletions

View File

@ -202,7 +202,12 @@ insert into t1 values (1, null);
update t1 set x= x + 1;
select x, y, sys_trx_end = 18446744073709551615 as current from t1 for system_time all;
create or replace table t1 (x int) with system versioning engine innodb;
create or replace table t1 (
x int,
row_start timestamp(6) as row start invisible,
row_end timestamp(6) as row end invisible,
period for system_time (row_start, row_end)
) with system versioning;
insert into t1 values (1), (2);
--error ER_WARNING_NON_DEFAULT_VALUE_FOR_GENERATED_COLUMN
insert into t1 (row_start) select row_end from t1;