mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
4f386579f8
Removed needless combinations.
24 lines
609 B
Text
24 lines
609 B
Text
create table t (a int) with system versioning;
|
|
insert into t values (1);
|
|
update t set a=2;
|
|
insert into t values (3);
|
|
# shutdown server
|
|
# remove datadir
|
|
# xtrabackup move back
|
|
# restart server
|
|
show create table t;
|
|
Table Create Table
|
|
t CREATE TABLE `t` (
|
|
`a` int(11) DEFAULT NULL,
|
|
`sys_trx_start` SYS_TRX_TYPE GENERATED ALWAYS AS ROW START,
|
|
`sys_trx_end` SYS_TRX_TYPE GENERATED ALWAYS AS ROW END,
|
|
PERIOD FOR SYSTEM_TIME (`sys_trx_start`, `sys_trx_end`)
|
|
) ENGINE=INNODB_OR_MYISAM DEFAULT CHARSET=latin1 WITH SYSTEM VERSIONING
|
|
select * from t;
|
|
a
|
|
2
|
|
select a from t for system_time all;
|
|
a
|
|
2
|
|
1
|
|
drop table t;
|