mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
rename system_time columns
sys_trx_start -> row_start sys_trx_end -> row_end
This commit is contained in:
committed by
Aleksey Midenkov
parent
cf1e5bef59
commit
b85efdc3af
@ -80,10 +80,10 @@ set @str= concat('
|
||||
engine ', engine);
|
||||
prepare stmt from @str; execute stmt; drop prepare stmt;
|
||||
insert into t1 values(1, 1, 1);
|
||||
select sys_trx_start, sys_trx_end from t1 into @sys_start, @sys_end;
|
||||
select row_start, row_end from t1 into @sys_start, @sys_end;
|
||||
select id, a, b from t1;
|
||||
insert into t1 values(2, 2, 2);
|
||||
select id, a, b, sys_trx_start > @sys_start as C, sys_trx_end = @sys_end as D from t1 where id = 2;
|
||||
select id, a, b, row_start > @sys_start as C, row_end = @sys_end as D from t1 where id = 2;
|
||||
drop table t1;
|
||||
end~~
|
||||
create procedure test_05(
|
||||
@ -306,18 +306,18 @@ x y current
|
||||
1 1 0
|
||||
create or replace table t1 (x int) with system versioning engine innodb;
|
||||
insert into t1 values (1), (2);
|
||||
insert into t1 (sys_trx_start) select sys_trx_end from t1;
|
||||
ERROR HY000: The value specified for generated column 'sys_trx_start' in table 't1' ignored
|
||||
insert into t1 (sys_trx_start, sys_trx_end) values (DEFAULT, 1);
|
||||
ERROR HY000: The value specified for generated column 'sys_trx_end' in table 't1' ignored
|
||||
insert into t1 (row_start) select row_end from t1;
|
||||
ERROR HY000: The value specified for generated column 'row_start' in table 't1' ignored
|
||||
insert into t1 (row_start, row_end) values (DEFAULT, 1);
|
||||
ERROR HY000: The value specified for generated column 'row_end' in table 't1' ignored
|
||||
select @@sql_mode into @saved_mode;
|
||||
set sql_mode= '';
|
||||
insert into t1 (x, sys_trx_start, sys_trx_end) values (3, 4, 5);
|
||||
insert into t1 (x, row_start, row_end) values (3, 4, 5);
|
||||
Warnings:
|
||||
Warning 1906 The value specified for generated column 'sys_trx_start' in table 't1' ignored
|
||||
Warning 1906 The value specified for generated column 'sys_trx_end' in table 't1' ignored
|
||||
Warning 1906 The value specified for generated column 'row_start' in table 't1' ignored
|
||||
Warning 1906 The value specified for generated column 'row_end' in table 't1' ignored
|
||||
set sql_mode= @saved_mode;
|
||||
insert into t1 (sys_trx_start, sys_trx_end) values (DEFAULT, DEFAULT);
|
||||
insert into t1 (row_start, row_end) values (DEFAULT, DEFAULT);
|
||||
select * from t1;
|
||||
x
|
||||
1
|
||||
|
Reference in New Issue
Block a user