mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
SQL: DEFAULT value for system fields [closes #376]
This commit is contained in:
@ -127,10 +127,13 @@ begin
|
||||
(3, 3001),
|
||||
(4, 4001),
|
||||
(5, 5001),
|
||||
(6, 6001),
|
||||
(7, 7001),
|
||||
(8, 8001),
|
||||
(9, 9001);
|
||||
(6, 6001);
|
||||
insert into t1(x, y, sys_start) values
|
||||
(7, 7001, DEFAULT);
|
||||
insert into t1(x, y, sys_end) values
|
||||
(8, 8001, DEFAULT);
|
||||
insert into t1(x, y, sys_start, sys_end) values
|
||||
(9, 9001, DEFAULT, DEFAULT);
|
||||
insert into t2 select x, y from t1 for system_time between timestamp '0000-0-0 0:0:0' and timestamp '9999-1-1 0:0:0';
|
||||
select x, y from t1;
|
||||
select x, y from t2;
|
||||
|
Reference in New Issue
Block a user