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:
@ -11,6 +11,9 @@ Feature_dynamic_columns 0
|
||||
Feature_fulltext 0
|
||||
Feature_gis 0
|
||||
Feature_insert_returning 0
|
||||
Feature_into_old_syntax 0
|
||||
Feature_into_outfile 0
|
||||
Feature_into_variable 0
|
||||
Feature_invisible_columns 0
|
||||
Feature_json 0
|
||||
Feature_locale 0
|
||||
@ -187,3 +190,24 @@ drop table t1;
|
||||
show status like "feature_insert_returning";
|
||||
Variable_name Value
|
||||
Feature_insert_returning 1
|
||||
#
|
||||
# Feature into outfile/variables
|
||||
#
|
||||
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;
|
||||
id1
|
||||
1
|
||||
select @x=@y;
|
||||
@x=@y
|
||||
1
|
||||
drop table t1;
|
||||
show status like "feature_into_%";
|
||||
Variable_name Value
|
||||
Feature_into_old_syntax 2
|
||||
Feature_into_outfile 2
|
||||
Feature_into_variable 2
|
||||
|
Reference in New Issue
Block a user