mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-11953: support of brackets in UNION/EXCEPT/INTERSECT operations
This commit is contained in:
@ -21,6 +21,8 @@ delete from t1 where x = 3;
|
||||
delete from t1 where x > 7;
|
||||
insert into t1(x, y) values(3, 33);
|
||||
select sys_trx_start from t1 where x = 3 and y = 33 into @t1;
|
||||
Warnings:
|
||||
Warning 1287 '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
|
||||
select x, y from t1;
|
||||
x y
|
||||
0 100
|
||||
@ -330,6 +332,8 @@ insert into t1 values (1);
|
||||
set @ts= now(6);
|
||||
delete from t1;
|
||||
select sys_trx_start from t1 for system_time all into @trx_start;
|
||||
Warnings:
|
||||
Warning 1287 '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
|
||||
## ensure @trx_start is much lower than unix timestamp
|
||||
select @trx_start < unix_timestamp(@ts) - 100 as trx_start_good;
|
||||
trx_start_good
|
||||
@ -526,7 +530,11 @@ period for system_time (row_start, row_end)
|
||||
insert into t1 values (1);
|
||||
delete from t1;
|
||||
select row_start from t1 for system_time all into @t1;
|
||||
Warnings:
|
||||
Warning 1287 '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
|
||||
select row_end from t1 for system_time all into @t2;
|
||||
Warnings:
|
||||
Warning 1287 '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
|
||||
select * from t1 for system_time between @t1 and @t2;
|
||||
a
|
||||
1
|
||||
|
Reference in New Issue
Block a user