1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +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:
Monty
2022-12-12 20:06:32 +02:00
committed by Sergei Petrunia
parent b74d2623eb
commit 1f4a9f086a
86 changed files with 65 additions and 726 deletions

View File

@ -148,3 +148,19 @@ create table t1(id1 int);
insert into t1 values (1),(2) returning *;
drop table t1;
show status like "feature_insert_returning";
--echo #
--echo # Feature into outfile/variables
--echo #
create table t1(id1 int);
insert into t1 values (1),(2);
select * into outfile '../../tmp/features_outfile.1' from t1;
select * from t1 into outfile '../../tmp/features_outfile.2';
select id1 INTO @x from t1 where id1=1;
select * from t1 where id1=1 into @y;
select * from t1 where id1=@x;
select @x=@y;
drop table t1;
--remove_file $MYSQLTEST_VARDIR/tmp/features_outfile.1
--remove_file $MYSQLTEST_VARDIR/tmp/features_outfile.2
show status like "feature_into_%";