mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Removed "<select expression> INTO <destination>" deprication.
This was done after discussions with Igor, Sanja and Bar. The main reason for removing the deprication was to ensure that MariaDB is always backward compatible whenever possible. Other things: - Added statistics counters, mainly for the feedback plugin. - INTO OUTFILE - INTO variable - If INTO is using the old syntax (end of query)
This commit is contained in:
@@ -23,8 +23,6 @@ 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
|
||||
@@ -382,8 +380,6 @@ 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
|
||||
@@ -577,11 +573,7 @@ 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