11create table t (a int) with system versioning;
22insert into t values (1);
33update t set a= 2;
4- show global variables like 'vers_current_time ';
4+ show global variables like 'versioning_current_timestamp ';
55Variable_name Value
6- vers_current_time NOW
7- show variables like 'vers_current_time ';
6+ versioning_current_timestamp NOW
7+ show variables like 'versioning_current_timestamp ';
88Variable_name Value
9- vers_current_time NOW
9+ versioning_current_timestamp NOW
1010select * from t;
1111a
12122
13- set vers_current_time = '2031-1-1 0:0:0';
14- show variables like 'vers_current_time ';
13+ set versioning_current_timestamp = '2031-1-1 0:0:0';
14+ show variables like 'versioning_current_timestamp ';
1515Variable_name Value
16- vers_current_time 2031-01-01 00:00:00.000000
16+ versioning_current_timestamp 2031-01-01 00:00:00.000000
1717select * from t;
1818a
19192
20- set vers_current_time = '2011-1-1 0:0:0';
21- show variables like 'vers_current_time ';
20+ set versioning_current_timestamp = '2011-1-1 0:0:0';
21+ show variables like 'versioning_current_timestamp ';
2222Variable_name Value
23- vers_current_time 2011-01-01 00:00:00.000000
23+ versioning_current_timestamp 2011-01-01 00:00:00.000000
2424select * from t;
2525a
26- set vers_current_time = 'all';
27- show variables like 'vers_current_time ';
26+ set versioning_current_timestamp = 'all';
27+ show variables like 'versioning_current_timestamp ';
2828Variable_name Value
29- vers_current_time ALL
29+ versioning_current_timestamp ALL
3030select * from t;
3131a
32322
@@ -41,70 +41,70 @@ select * from (select * from t) as tt;
4141a
42422
43431
44- set global vers_current_time = 'alley';
45- ERROR 42000: Variable 'vers_current_time ' can't be set to the value of 'alley'
46- set global vers_current_time = null;
47- ERROR 42000: Variable 'vers_current_time ' can't be set to the value of 'NULL'
48- set global vers_current_time = 1;
49- ERROR 42000: Incorrect argument type to variable 'vers_current_time '
50- set global vers_current_time = 1.1;
51- ERROR 42000: Incorrect argument type to variable 'vers_current_time '
52- set vers_current_time = 'alley';
53- ERROR 42000: Variable 'vers_current_time ' can't be set to the value of 'alley'
54- set vers_current_time = null;
55- ERROR 42000: Variable 'vers_current_time ' can't be set to the value of 'NULL'
56- set vers_current_time = 1;
57- ERROR 42000: Incorrect argument type to variable 'vers_current_time '
58- set vers_current_time = 1.1;
59- ERROR 42000: Incorrect argument type to variable 'vers_current_time '
60- set global vers_current_time = '1911-11-11 11:11:11.1111119';
61- show global variables like 'vers_current_time ';
44+ set global versioning_current_timestamp = 'alley';
45+ ERROR 42000: Variable 'versioning_current_timestamp ' can't be set to the value of 'alley'
46+ set global versioning_current_timestamp = null;
47+ ERROR 42000: Variable 'versioning_current_timestamp ' can't be set to the value of 'NULL'
48+ set global versioning_current_timestamp = 1;
49+ ERROR 42000: Incorrect argument type to variable 'versioning_current_timestamp '
50+ set global versioning_current_timestamp = 1.1;
51+ ERROR 42000: Incorrect argument type to variable 'versioning_current_timestamp '
52+ set versioning_current_timestamp = 'alley';
53+ ERROR 42000: Variable 'versioning_current_timestamp ' can't be set to the value of 'alley'
54+ set versioning_current_timestamp = null;
55+ ERROR 42000: Variable 'versioning_current_timestamp ' can't be set to the value of 'NULL'
56+ set versioning_current_timestamp = 1;
57+ ERROR 42000: Incorrect argument type to variable 'versioning_current_timestamp '
58+ set versioning_current_timestamp = 1.1;
59+ ERROR 42000: Incorrect argument type to variable 'versioning_current_timestamp '
60+ set global versioning_current_timestamp = '1911-11-11 11:11:11.1111119';
61+ show global variables like 'versioning_current_timestamp ';
6262Variable_name Value
63- vers_current_time 1911-11-11 11:11:11.111111
64- set global vers_current_time = '1900-01-01 00:00:00';
65- show global variables like 'vers_current_time ';
63+ versioning_current_timestamp 1911-11-11 11:11:11.111111
64+ set global versioning_current_timestamp = '1900-01-01 00:00:00';
65+ show global variables like 'versioning_current_timestamp ';
6666Variable_name Value
67- vers_current_time 1900-01-01 00:00:00.000000
68- set global vers_current_time = timestamp'1911-11-11 11:11:11.1111119';
67+ versioning_current_timestamp 1900-01-01 00:00:00.000000
68+ set global versioning_current_timestamp = timestamp'1911-11-11 11:11:11.1111119';
6969Warnings:
7070Note 1292 Truncated incorrect datetime value: '1911-11-11 11:11:11.1111119'
71- show global variables like 'vers_current_time ';
71+ show global variables like 'versioning_current_timestamp ';
7272Variable_name Value
73- vers_current_time 1911-11-11 11:11:11.111111
73+ versioning_current_timestamp 1911-11-11 11:11:11.111111
7474set @ts= timestamp'1900-01-01 00:00:00';
75- set global vers_current_time = @ts;
76- show global variables like 'vers_current_time ';
75+ set global versioning_current_timestamp = @ts;
76+ show global variables like 'versioning_current_timestamp ';
7777Variable_name Value
78- vers_current_time 1900-01-01 00:00:00.000000
79- set vers_current_time = '1911-11-11 11:11:11.1111119';
80- show variables like 'vers_current_time ';
78+ versioning_current_timestamp 1900-01-01 00:00:00.000000
79+ set versioning_current_timestamp = '1911-11-11 11:11:11.1111119';
80+ show variables like 'versioning_current_timestamp ';
8181Variable_name Value
82- vers_current_time 1911-11-11 11:11:11.111111
83- set vers_current_time = '1900-01-01 00:00:00';
84- show variables like 'vers_current_time ';
82+ versioning_current_timestamp 1911-11-11 11:11:11.111111
83+ set versioning_current_timestamp = '1900-01-01 00:00:00';
84+ show variables like 'versioning_current_timestamp ';
8585Variable_name Value
86- vers_current_time 1900-01-01 00:00:00.000000
87- set vers_current_time = timestamp'1911-11-11 11:11:11.1111119';
86+ versioning_current_timestamp 1900-01-01 00:00:00.000000
87+ set versioning_current_timestamp = timestamp'1911-11-11 11:11:11.1111119';
8888Warnings:
8989Note 1292 Truncated incorrect datetime value: '1911-11-11 11:11:11.1111119'
90- show variables like 'vers_current_time ';
90+ show variables like 'versioning_current_timestamp ';
9191Variable_name Value
92- vers_current_time 1911-11-11 11:11:11.111111
92+ versioning_current_timestamp 1911-11-11 11:11:11.111111
9393set @ts= timestamp'1900-01-01 00:00:00';
94- set vers_current_time = @ts;
95- show variables like 'vers_current_time ';
94+ set versioning_current_timestamp = @ts;
95+ show variables like 'versioning_current_timestamp ';
9696Variable_name Value
97- vers_current_time 1900-01-01 00:00:00.000000
98- set global vers_current_time = 'now';
99- set vers_current_time = 'now';
100- show variables where variable_name = "vers_hide ";
97+ versioning_current_timestamp 1900-01-01 00:00:00.000000
98+ set global versioning_current_timestamp = 'now';
99+ set versioning_current_timestamp = 'now';
100+ show variables where variable_name = "versioning_hide ";
101101Variable_name Value
102- vers_hide IMPLICIT
102+ versioning_hide IMPLICIT
103103select * from t for system_time all;
104104a
1051052
1061061
107- set vers_hide = AUTO;
107+ set versioning_hide = AUTO;
108108select * from t;
109109a
1101102
@@ -123,11 +123,11 @@ select * from t for system_time timestamp between '0-0-0' and current_timestamp(
123123a sys_trx_start sys_trx_end
1241242 TIMESTAMP TIMESTAMP
1251251 TIMESTAMP TIMESTAMP
126- set vers_hide = NEVER;
126+ set versioning_hide = NEVER;
127127select * from t;
128128a sys_trx_start sys_trx_end
1291292 TIMESTAMP TIMESTAMP
130- set vers_hide = FULL;
130+ set versioning_hide = FULL;
131131create or replace table t (
132132x int,
133133st timestamp(6) generated always as row start,
@@ -147,4 +147,4 @@ select * from t for system_time all;
147147x
1481481
149149drop table t;
150- set vers_hide = IMPLICIT;
150+ set versioning_hide = IMPLICIT;
0 commit comments