mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +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:
@ -16,8 +16,6 @@ create table t10 (c1 int);
|
|||||||
select Sum(ALL(COUNT_READ)) from performance_schema.file_summary_by_instance where FILE_NAME
|
select Sum(ALL(COUNT_READ)) from performance_schema.file_summary_by_instance where FILE_NAME
|
||||||
like "%show_table_lw_db%" AND FILE_NAME like "%.frm%" AND EVENT_NAME='wait/io/file/sql/FRM'
|
like "%show_table_lw_db%" AND FILE_NAME like "%.frm%" AND EVENT_NAME='wait/io/file/sql/FRM'
|
||||||
into @count_read_before;
|
into @count_read_before;
|
||||||
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
|
|
||||||
show tables;
|
show tables;
|
||||||
Tables_in_show_table_lw_db
|
Tables_in_show_table_lw_db
|
||||||
t1
|
t1
|
||||||
@ -33,8 +31,6 @@ t9
|
|||||||
select Sum(ALL(COUNT_READ)) from performance_schema.file_summary_by_instance where FILE_NAME
|
select Sum(ALL(COUNT_READ)) from performance_schema.file_summary_by_instance where FILE_NAME
|
||||||
like "%show_table_lw_db%" AND FILE_NAME like "%.frm%" AND EVENT_NAME='wait/io/file/sql/FRM'
|
like "%show_table_lw_db%" AND FILE_NAME like "%.frm%" AND EVENT_NAME='wait/io/file/sql/FRM'
|
||||||
into @count_read_after;
|
into @count_read_after;
|
||||||
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 @count_read_after-@count_read_before;
|
select @count_read_after-@count_read_before;
|
||||||
@count_read_after-@count_read_before
|
@count_read_after-@count_read_before
|
||||||
0.00000000000000000000000000000000000000
|
0.00000000000000000000000000000000000000
|
||||||
@ -53,8 +49,6 @@ t9 BASE TABLE
|
|||||||
select Sum(ALL(COUNT_READ)) from performance_schema.file_summary_by_instance where FILE_NAME
|
select Sum(ALL(COUNT_READ)) from performance_schema.file_summary_by_instance where FILE_NAME
|
||||||
like "%show_table_lw_db%" AND FILE_NAME like "%.frm%" AND EVENT_NAME='wait/io/file/sql/FRM'
|
like "%show_table_lw_db%" AND FILE_NAME like "%.frm%" AND EVENT_NAME='wait/io/file/sql/FRM'
|
||||||
into @count_read_after;
|
into @count_read_after;
|
||||||
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 @count_read_after-@count_read_before;
|
select @count_read_after-@count_read_before;
|
||||||
@count_read_after-@count_read_before
|
@count_read_after-@count_read_before
|
||||||
10.00000000000000000000000000000000000000
|
10.00000000000000000000000000000000000000
|
||||||
|
@ -680,11 +680,7 @@ b MEDIUMTEXT CHARACTER SET big5);
|
|||||||
INSERT INTO t1 VALUES
|
INSERT INTO t1 VALUES
|
||||||
(REPEAT(0x1125,200000), REPEAT(0x1125,200000)), ('', ''), ('', '');
|
(REPEAT(0x1125,200000), REPEAT(0x1125,200000)), ('', ''), ('', '');
|
||||||
SELECT a FROM t1 GROUP BY 1 LIMIT 1 INTO @nullll;
|
SELECT a FROM t1 GROUP BY 1 LIMIT 1 INTO @nullll;
|
||||||
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 b FROM t1 GROUP BY 1 LIMIT 1 INTO @nullll;
|
SELECT b FROM t1 GROUP BY 1 LIMIT 1 INTO @nullll;
|
||||||
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
|
|
||||||
DROP TABLES t1;
|
DROP TABLES t1;
|
||||||
End of 5.0 tests
|
End of 5.0 tests
|
||||||
#
|
#
|
||||||
|
@ -207,8 +207,6 @@ DROP TABLE t1;
|
|||||||
# Problem # 1 (original report): wrong parsing of ucs2 data
|
# Problem # 1 (original report): wrong parsing of ucs2 data
|
||||||
SET character_set_connection=ucs2;
|
SET character_set_connection=ucs2;
|
||||||
SELECT '00' UNION SELECT '10' INTO OUTFILE 'tmpp.txt';
|
SELECT '00' UNION SELECT '10' INTO OUTFILE 'tmpp.txt';
|
||||||
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
|
|
||||||
CREATE TABLE t1(a INT);
|
CREATE TABLE t1(a INT);
|
||||||
LOAD DATA INFILE 'tmpp.txt' INTO TABLE t1 CHARACTER SET ucs2
|
LOAD DATA INFILE 'tmpp.txt' INTO TABLE t1 CHARACTER SET ucs2
|
||||||
(@b) SET a=REVERSE(@b);
|
(@b) SET a=REVERSE(@b);
|
||||||
@ -220,8 +218,6 @@ a
|
|||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
# Problem # 2 : if you write and read ucs2 data to a file they're lost
|
# Problem # 2 : if you write and read ucs2 data to a file they're lost
|
||||||
SELECT '00' UNION SELECT '10' INTO OUTFILE 'tmpp2.txt' CHARACTER SET ucs2;
|
SELECT '00' UNION SELECT '10' INTO OUTFILE 'tmpp2.txt' CHARACTER SET ucs2;
|
||||||
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
|
|
||||||
CREATE TABLE t1(a INT);
|
CREATE TABLE t1(a INT);
|
||||||
LOAD DATA INFILE 'tmpp2.txt' INTO TABLE t1 CHARACTER SET ucs2
|
LOAD DATA INFILE 'tmpp2.txt' INTO TABLE t1 CHARACTER SET ucs2
|
||||||
(@b) SET a=REVERSE(@b);
|
(@b) SET a=REVERSE(@b);
|
||||||
|
@ -11,6 +11,9 @@ Feature_dynamic_columns 0
|
|||||||
Feature_fulltext 0
|
Feature_fulltext 0
|
||||||
Feature_gis 0
|
Feature_gis 0
|
||||||
Feature_insert_returning 0
|
Feature_insert_returning 0
|
||||||
|
Feature_into_old_syntax 0
|
||||||
|
Feature_into_outfile 0
|
||||||
|
Feature_into_variable 0
|
||||||
Feature_invisible_columns 0
|
Feature_invisible_columns 0
|
||||||
Feature_json 0
|
Feature_json 0
|
||||||
Feature_locale 0
|
Feature_locale 0
|
||||||
@ -187,3 +190,24 @@ drop table t1;
|
|||||||
show status like "feature_insert_returning";
|
show status like "feature_insert_returning";
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
Feature_insert_returning 1
|
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
|
||||||
|
@ -148,3 +148,19 @@ create table t1(id1 int);
|
|||||||
insert into t1 values (1),(2) returning *;
|
insert into t1 values (1),(2) returning *;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
show status like "feature_insert_returning";
|
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_%";
|
||||||
|
@ -3803,21 +3803,13 @@ SET @sav_slow_query_log= @@session.slow_query_log;
|
|||||||
SET @@session.slow_query_log= ON;
|
SET @@session.slow_query_log= ON;
|
||||||
SELECT current_timestamp(6),fn_sleep_before_now() INTO @ts_cur, @ts_func;
|
SELECT current_timestamp(6),fn_sleep_before_now() INTO @ts_cur, @ts_func;
|
||||||
SELECT a FROM t_ts LIMIT 1 into @ts_func;
|
SELECT a FROM t_ts LIMIT 1 into @ts_func;
|
||||||
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 a FROM t_trig LIMIT 1 into @ts_trig;
|
SELECT a FROM t_trig LIMIT 1 into @ts_trig;
|
||||||
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
|
|
||||||
DELETE FROM t_ts;
|
DELETE FROM t_ts;
|
||||||
DELETE FROM t_trig;
|
DELETE FROM t_trig;
|
||||||
SET @@session.slow_query_log= OFF;
|
SET @@session.slow_query_log= OFF;
|
||||||
SELECT current_timestamp(6),fn_sleep_before_now() INTO @ts_cur, @func_ts;
|
SELECT current_timestamp(6),fn_sleep_before_now() INTO @ts_cur, @func_ts;
|
||||||
SELECT a FROM t_ts LIMIT 1 into @ts_func;
|
SELECT a FROM t_ts LIMIT 1 into @ts_func;
|
||||||
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 a FROM t_trig LIMIT 1 into @ts_trig;
|
SELECT a FROM t_trig LIMIT 1 into @ts_trig;
|
||||||
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
|
|
||||||
SET @@session.slow_query_log= @sav_slow_query_log;
|
SET @@session.slow_query_log= @sav_slow_query_log;
|
||||||
DROP FUNCTION fn_sleep_before_now;
|
DROP FUNCTION fn_sleep_before_now;
|
||||||
DROP TRIGGER trg_insert_t_ts;
|
DROP TRIGGER trg_insert_t_ts;
|
||||||
|
@ -1472,8 +1472,6 @@ declare tmp varchar(30);
|
|||||||
select col1 from test limit 1 into tmp;
|
select col1 from test limit 1 into tmp;
|
||||||
return '1';
|
return '1';
|
||||||
end|
|
end|
|
||||||
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
|
|
||||||
create view v1 as select test.* from test where test.col1=test_function();
|
create view v1 as select test.* from test where test.col1=test_function();
|
||||||
grant update (col1) on v1 to 'greg'@'localhost';
|
grant update (col1) on v1 to 'greg'@'localhost';
|
||||||
drop user 'greg'@'localhost';
|
drop user 'greg'@'localhost';
|
||||||
|
@ -452,8 +452,6 @@ INSERT INTO t2 VALUES (1);
|
|||||||
DROP FUNCTION IF EXISTS f2;
|
DROP FUNCTION IF EXISTS f2;
|
||||||
CREATE FUNCTION f2 () RETURNS INT
|
CREATE FUNCTION f2 () RETURNS INT
|
||||||
BEGIN DECLARE v INT; SELECT s1 FROM t2 INTO v; RETURN v; END//
|
BEGIN DECLARE v INT; SELECT s1 FROM t2 INTO v; RETURN v; END//
|
||||||
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 f2();
|
SELECT f2();
|
||||||
f2()
|
f2()
|
||||||
1
|
1
|
||||||
|
@ -26,8 +26,6 @@ declare ret_val int;
|
|||||||
select max(f1) from t1 into ret_val;
|
select max(f1) from t1 into ret_val;
|
||||||
return ret_val;
|
return ret_val;
|
||||||
end|
|
end|
|
||||||
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
|
|
||||||
create view v1 as select f1 from t1 where f1 = func1(f1);
|
create view v1 as select f1 from t1 where f1 = func1(f1);
|
||||||
create function func2() returns int return 1;
|
create function func2() returns int return 1;
|
||||||
use mbase;
|
use mbase;
|
||||||
|
@ -57,8 +57,6 @@ declare j int;
|
|||||||
select i from t1 where i = 1 into j;
|
select i from t1 where i = 1 into j;
|
||||||
return j;
|
return j;
|
||||||
end|
|
end|
|
||||||
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
|
|
||||||
create function f2() returns int
|
create function f2() returns int
|
||||||
begin
|
begin
|
||||||
declare k int;
|
declare k int;
|
||||||
@ -66,8 +64,6 @@ select i from t1 where i = 1 into k;
|
|||||||
insert into t2 values (k + 5);
|
insert into t2 values (k + 5);
|
||||||
return 0;
|
return 0;
|
||||||
end|
|
end|
|
||||||
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
|
|
||||||
create function f3() returns int
|
create function f3() returns int
|
||||||
begin
|
begin
|
||||||
return (select i from t1 where i = 3);
|
return (select i from t1 where i = 3);
|
||||||
@ -91,16 +87,12 @@ declare k int;
|
|||||||
select i from v1 where i = 1 into k;
|
select i from v1 where i = 1 into k;
|
||||||
return k;
|
return k;
|
||||||
end|
|
end|
|
||||||
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
|
|
||||||
create function f7() returns int
|
create function f7() returns int
|
||||||
begin
|
begin
|
||||||
declare k int;
|
declare k int;
|
||||||
select j from v2 where j = 1 into k;
|
select j from v2 where j = 1 into k;
|
||||||
return k;
|
return k;
|
||||||
end|
|
end|
|
||||||
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
|
|
||||||
create function f8() returns int
|
create function f8() returns int
|
||||||
begin
|
begin
|
||||||
declare k int;
|
declare k int;
|
||||||
@ -108,8 +100,6 @@ select i from v1 where i = 1 into k;
|
|||||||
insert into t2 values (k+5);
|
insert into t2 values (k+5);
|
||||||
return k;
|
return k;
|
||||||
end|
|
end|
|
||||||
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
|
|
||||||
create function f9() returns int
|
create function f9() returns int
|
||||||
begin
|
begin
|
||||||
update v2 set j=j+10 where j=1;
|
update v2 set j=j+10 where j=1;
|
||||||
@ -139,8 +129,6 @@ create procedure p2(inout p int)
|
|||||||
begin
|
begin
|
||||||
select i from t1 where i = 1 into p;
|
select i from t1 where i = 1 into p;
|
||||||
end|
|
end|
|
||||||
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
|
|
||||||
create function f14() returns int
|
create function f14() returns int
|
||||||
begin
|
begin
|
||||||
declare k int;
|
declare k int;
|
||||||
@ -160,8 +148,6 @@ declare k int;
|
|||||||
select i from t1 where i=1 into k;
|
select i from t1 where i=1 into k;
|
||||||
set new.l= k+1;
|
set new.l= k+1;
|
||||||
end|
|
end|
|
||||||
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
|
|
||||||
create trigger t4_bu before update on t4 for each row
|
create trigger t4_bu before update on t4 for each row
|
||||||
begin
|
begin
|
||||||
if (select i from t1 where i=1) then
|
if (select i from t1 where i=1) then
|
||||||
|
@ -559,8 +559,6 @@ DROP TABLE t1;
|
|||||||
create or replace table t1 (a int, b int invisible);
|
create or replace table t1 (a int, b int invisible);
|
||||||
insert into t1 values (1),(2);
|
insert into t1 values (1),(2);
|
||||||
select * from t1 into outfile 'f';
|
select * from t1 into outfile 'f';
|
||||||
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
|
|
||||||
load data infile 'f' into table t1;
|
load data infile 'f' into table t1;
|
||||||
select a,b from t1;
|
select a,b from t1;
|
||||||
a b
|
a b
|
||||||
@ -591,8 +589,6 @@ a b
|
|||||||
truncate table t1;
|
truncate table t1;
|
||||||
insert into t1(a,b) values (1,1),(2,2);
|
insert into t1(a,b) values (1,1),(2,2);
|
||||||
select a,b from t1 into outfile 'a';
|
select a,b from t1 into outfile 'a';
|
||||||
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
|
|
||||||
load data infile 'a' into table t1(a,b);
|
load data infile 'a' into table t1(a,b);
|
||||||
select a,b from t1;
|
select a,b from t1;
|
||||||
a b
|
a b
|
||||||
|
@ -67,8 +67,6 @@ declare j int;
|
|||||||
select i from t1 where i = 1 into j;
|
select i from t1 where i = 1 into j;
|
||||||
return j;
|
return j;
|
||||||
end|
|
end|
|
||||||
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
|
|
||||||
create function f2() returns int
|
create function f2() returns int
|
||||||
begin
|
begin
|
||||||
declare k int;
|
declare k int;
|
||||||
@ -76,8 +74,6 @@ select i from t1 where i = 1 into k;
|
|||||||
insert into t2 values (k + 5);
|
insert into t2 values (k + 5);
|
||||||
return 0;
|
return 0;
|
||||||
end|
|
end|
|
||||||
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
|
|
||||||
create function f3() returns int
|
create function f3() returns int
|
||||||
begin
|
begin
|
||||||
return (select i from t1 where i = 3);
|
return (select i from t1 where i = 3);
|
||||||
@ -101,16 +97,12 @@ declare k int;
|
|||||||
select i from v1 where i = 1 into k;
|
select i from v1 where i = 1 into k;
|
||||||
return k;
|
return k;
|
||||||
end|
|
end|
|
||||||
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
|
|
||||||
create function f7() returns int
|
create function f7() returns int
|
||||||
begin
|
begin
|
||||||
declare k int;
|
declare k int;
|
||||||
select j from v2 where j = 1 into k;
|
select j from v2 where j = 1 into k;
|
||||||
return k;
|
return k;
|
||||||
end|
|
end|
|
||||||
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
|
|
||||||
create function f8() returns int
|
create function f8() returns int
|
||||||
begin
|
begin
|
||||||
declare k int;
|
declare k int;
|
||||||
@ -118,8 +110,6 @@ select i from v1 where i = 1 into k;
|
|||||||
insert into t2 values (k+5);
|
insert into t2 values (k+5);
|
||||||
return k;
|
return k;
|
||||||
end|
|
end|
|
||||||
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
|
|
||||||
create function f9() returns int
|
create function f9() returns int
|
||||||
begin
|
begin
|
||||||
update v2 set j=j+10 where j=1;
|
update v2 set j=j+10 where j=1;
|
||||||
@ -149,8 +139,6 @@ create procedure p2(inout p int)
|
|||||||
begin
|
begin
|
||||||
select i from t1 where i = 1 into p;
|
select i from t1 where i = 1 into p;
|
||||||
end|
|
end|
|
||||||
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
|
|
||||||
create function f14() returns int
|
create function f14() returns int
|
||||||
begin
|
begin
|
||||||
declare k int;
|
declare k int;
|
||||||
@ -178,8 +166,6 @@ select i from t1 where i = 1 into j;
|
|||||||
call p3;
|
call p3;
|
||||||
return 1;
|
return 1;
|
||||||
end|
|
end|
|
||||||
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
|
|
||||||
create procedure p3()
|
create procedure p3()
|
||||||
begin
|
begin
|
||||||
create temporary table if not exists temp1 (a int);
|
create temporary table if not exists temp1 (a int);
|
||||||
@ -192,8 +178,6 @@ declare k int;
|
|||||||
select i from t1 where i=1 into k;
|
select i from t1 where i=1 into k;
|
||||||
set new.l= k+1;
|
set new.l= k+1;
|
||||||
end|
|
end|
|
||||||
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
|
|
||||||
create trigger t4_bu before update on t4 for each row
|
create trigger t4_bu before update on t4 for each row
|
||||||
begin
|
begin
|
||||||
if (select i from t1 where i=1) then
|
if (select i from t1 where i=1) then
|
||||||
|
@ -149,16 +149,8 @@ DROP USER test2@localhost;
|
|||||||
# MYSQL 8
|
# MYSQL 8
|
||||||
#
|
#
|
||||||
SELECT 1 FROM DUAL LIMIT 1 INTO @var FOR UPDATE;
|
SELECT 1 FROM DUAL LIMIT 1 INTO @var FOR UPDATE;
|
||||||
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 1 FROM DUAL LIMIT 1 FOR UPDATE INTO @var;
|
SELECT 1 FROM DUAL LIMIT 1 FOR UPDATE INTO @var;
|
||||||
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 1 FROM DUAL LIMIT 1 INTO @var FOR UPDATE INTO @var;
|
SELECT 1 FROM DUAL LIMIT 1 INTO @var FOR UPDATE INTO @var;
|
||||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @var' at line 1
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @var' at line 1
|
||||||
SELECT 1 UNION SELECT 1 FOR UPDATE INTO @var;
|
SELECT 1 UNION SELECT 1 FOR UPDATE INTO @var;
|
||||||
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 1 UNION SELECT 1 INTO @var FOR UPDATE;
|
SELECT 1 UNION SELECT 1 INTO @var FOR UPDATE;
|
||||||
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
|
|
||||||
|
@ -2804,8 +2804,6 @@ CREATE TABLE tm1 (c1 INT) ENGINE=MRG_MYISAM UNION=(t1)
|
|||||||
INSERT_METHOD=LAST;
|
INSERT_METHOD=LAST;
|
||||||
CREATE TRIGGER tm1_ai AFTER INSERT ON tm1
|
CREATE TRIGGER tm1_ai AFTER INSERT ON tm1
|
||||||
FOR EACH ROW SELECT max(c1) FROM t1 INTO @var;
|
FOR EACH ROW SELECT max(c1) FROM t1 INTO @var;
|
||||||
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
|
|
||||||
LOCK TABLE tm1 WRITE, t1 WRITE;
|
LOCK TABLE tm1 WRITE, t1 WRITE;
|
||||||
INSERT INTO tm1 VALUES (1);
|
INSERT INTO tm1 VALUES (1);
|
||||||
SELECT * FROM tm1;
|
SELECT * FROM tm1;
|
||||||
@ -2830,8 +2828,6 @@ CREATE TABLE tm1 (c1 INT) ENGINE=MRG_MYISAM UNION=(t1,t2,t3,t4,t5)
|
|||||||
INSERT_METHOD=LAST;
|
INSERT_METHOD=LAST;
|
||||||
CREATE TRIGGER t2_au AFTER UPDATE ON t2
|
CREATE TRIGGER t2_au AFTER UPDATE ON t2
|
||||||
FOR EACH ROW SELECT MAX(c1) FROM t1 INTO @var;
|
FOR EACH ROW SELECT MAX(c1) FROM t1 INTO @var;
|
||||||
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
|
|
||||||
CREATE FUNCTION f1() RETURNS INT
|
CREATE FUNCTION f1() RETURNS INT
|
||||||
RETURN (SELECT MAX(c1) FROM t4);
|
RETURN (SELECT MAX(c1) FROM t4);
|
||||||
LOCK TABLE tm1 WRITE, t1 WRITE, t2 WRITE, t3 WRITE, t4 WRITE, t5 WRITE;
|
LOCK TABLE tm1 WRITE, t1 WRITE, t2 WRITE, t3 WRITE, t4 WRITE, t5 WRITE;
|
||||||
|
@ -23,8 +23,6 @@ SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST
|
|||||||
WHERE STATE = 'wait_in_enable_indexes' AND
|
WHERE STATE = 'wait_in_enable_indexes' AND
|
||||||
INFO = "INSERT INTO t1(id) SELECT id FROM t2"
|
INFO = "INSERT INTO t1(id) SELECT id FROM t2"
|
||||||
INTO @thread_id;
|
INTO @thread_id;
|
||||||
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
|
|
||||||
KILL QUERY @thread_id;
|
KILL QUERY @thread_id;
|
||||||
CHECK TABLE t1;
|
CHECK TABLE t1;
|
||||||
Table Op Msg_type Msg_text
|
Table Op Msg_type Msg_text
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -2822,8 +2822,6 @@ CREATE PROCEDURE bug9056_proc2(OUT a INT)
|
|||||||
BEGIN
|
BEGIN
|
||||||
select sum(id) from t1 into a;
|
select sum(id) from t1 into a;
|
||||||
END //
|
END //
|
||||||
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
|
|
||||||
set sql_mode='ansi';
|
set sql_mode='ansi';
|
||||||
create procedure `a'b` () select 1;
|
create procedure `a'b` () select 1;
|
||||||
set sql_mode='';
|
set sql_mode='';
|
||||||
|
@ -3934,8 +3934,6 @@ declare a int default 0;
|
|||||||
select count(*) from t2 into a;
|
select count(*) from t2 into a;
|
||||||
return a;
|
return a;
|
||||||
end|
|
end|
|
||||||
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
|
|
||||||
set optimizer_trace='enabled=on';
|
set optimizer_trace='enabled=on';
|
||||||
select f1(a) from t1;
|
select f1(a) from t1;
|
||||||
f1(a)
|
f1(a)
|
||||||
|
@ -124,19 +124,16 @@ ERROR 42000: Field separator argument is not what is expected; check the manual
|
|||||||
# LOAD DATA rises error or has unpredictable result -- to be fixed later
|
# LOAD DATA rises error or has unpredictable result -- to be fixed later
|
||||||
SELECT * FROM t1 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' FIELDS ENCLOSED BY 'ъ';
|
SELECT * FROM t1 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' FIELDS ENCLOSED BY 'ъ';
|
||||||
Warnings:
|
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
|
|
||||||
Warning 1638 Non-ASCII separator arguments are not fully supported
|
Warning 1638 Non-ASCII separator arguments are not fully supported
|
||||||
LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET binary FIELDS ENCLOSED BY 'ъ';
|
LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET binary FIELDS ENCLOSED BY 'ъ';
|
||||||
ERROR 42000: Field separator argument is not what is expected; check the manual
|
ERROR 42000: Field separator argument is not what is expected; check the manual
|
||||||
SELECT * FROM t1 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' FIELDS ESCAPED BY 'ъ';
|
SELECT * FROM t1 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' FIELDS ESCAPED BY 'ъ';
|
||||||
Warnings:
|
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
|
|
||||||
Warning 1638 Non-ASCII separator arguments are not fully supported
|
Warning 1638 Non-ASCII separator arguments are not fully supported
|
||||||
LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET binary FIELDS ESCAPED BY 'ъ';
|
LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET binary FIELDS ESCAPED BY 'ъ';
|
||||||
ERROR 42000: Field separator argument is not what is expected; check the manual
|
ERROR 42000: Field separator argument is not what is expected; check the manual
|
||||||
SELECT * FROM t1 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' FIELDS TERMINATED BY 'ъ';
|
SELECT * FROM t1 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' FIELDS TERMINATED BY 'ъ';
|
||||||
Warnings:
|
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
|
|
||||||
Warning 1638 Non-ASCII separator arguments are not fully supported
|
Warning 1638 Non-ASCII separator arguments are not fully supported
|
||||||
##################################################
|
##################################################
|
||||||
1ъABC-<2D><><EFBFBD>ъDEF-<2D><><EFBFBD>
|
1ъABC-<2D><><EFBFBD>ъDEF-<2D><><EFBFBD>
|
||||||
@ -160,7 +157,6 @@ a b c
|
|||||||
2 NULL NULL
|
2 NULL NULL
|
||||||
SELECT * FROM t1 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' LINES STARTING BY 'ъ';
|
SELECT * FROM t1 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' LINES STARTING BY 'ъ';
|
||||||
Warnings:
|
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
|
|
||||||
Warning 1638 Non-ASCII separator arguments are not fully supported
|
Warning 1638 Non-ASCII separator arguments are not fully supported
|
||||||
##################################################
|
##################################################
|
||||||
ъ1 ABC-<2D><><EFBFBD> DEF-<2D><><EFBFBD>
|
ъ1 ABC-<2D><><EFBFBD> DEF-<2D><><EFBFBD>
|
||||||
@ -176,7 +172,6 @@ a b c
|
|||||||
2 NULL NULL
|
2 NULL NULL
|
||||||
SELECT * FROM t1 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' LINES TERMINATED BY 'ъ';
|
SELECT * FROM t1 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' LINES TERMINATED BY 'ъ';
|
||||||
Warnings:
|
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
|
|
||||||
Warning 1638 Non-ASCII separator arguments are not fully supported
|
Warning 1638 Non-ASCII separator arguments are not fully supported
|
||||||
##################################################
|
##################################################
|
||||||
1 ABC-<2D><><EFBFBD> DEF-<2D><><EFBFBD>ъ2 \N \Nъ##################################################
|
1 ABC-<2D><><EFBFBD> DEF-<2D><><EFBFBD>ъ2 \N \Nъ##################################################
|
||||||
|
@ -764,11 +764,8 @@ SELECT 1 FROM t1 UNION SELECT 1 FROM t1 ORDER BY 1 LIMIT 1 FOR UPDATE;
|
|||||||
# "INTO" clause tests
|
# "INTO" clause tests
|
||||||
SELECT 1 FROM t1 INTO @var17727401;
|
SELECT 1 FROM t1 INTO @var17727401;
|
||||||
Warnings:
|
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
|
|
||||||
Warning 1329 No data - zero rows fetched, selected, or processed
|
Warning 1329 No data - zero rows fetched, selected, or processed
|
||||||
SELECT 1 FROM DUAL INTO @var17727401;
|
SELECT 1 FROM DUAL INTO @var17727401;
|
||||||
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 1 INTO @var17727401;
|
SELECT 1 INTO @var17727401;
|
||||||
SELECT 1 INTO @var17727401 FROM t1;
|
SELECT 1 INTO @var17727401 FROM t1;
|
||||||
Warnings:
|
Warnings:
|
||||||
@ -784,7 +781,6 @@ Warnings:
|
|||||||
Warning 1329 No data - zero rows fetched, selected, or processed
|
Warning 1329 No data - zero rows fetched, selected, or processed
|
||||||
SELECT 1 FROM t1 WHERE 1 GROUP BY 1 HAVING 1 ORDER BY 1 LIMIT 1 INTO @var17727401;
|
SELECT 1 FROM t1 WHERE 1 GROUP BY 1 HAVING 1 ORDER BY 1 LIMIT 1 INTO @var17727401;
|
||||||
Warnings:
|
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
|
|
||||||
Warning 1329 No data - zero rows fetched, selected, or processed
|
Warning 1329 No data - zero rows fetched, selected, or processed
|
||||||
SELECT 1 FROM t1 WHERE 1 INTO @var17727401 GROUP BY 1 HAVING 1 ORDER BY 1 LIMIT 1;
|
SELECT 1 FROM t1 WHERE 1 INTO @var17727401 GROUP BY 1 HAVING 1 ORDER BY 1 LIMIT 1;
|
||||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'GROUP BY 1 HAVING 1 ORDER BY 1 LIMIT 1' at line 1
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'GROUP BY 1 HAVING 1 ORDER BY 1 LIMIT 1' at line 1
|
||||||
@ -804,7 +800,6 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp
|
|||||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @var17727401) UNION (SELECT 1 FROM t1 INTO t1)' at line 1
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @var17727401) UNION (SELECT 1 FROM t1 INTO t1)' at line 1
|
||||||
SELECT 1 FROM t1 UNION SELECT 1 FROM t1 INTO @var17727401;
|
SELECT 1 FROM t1 UNION SELECT 1 FROM t1 INTO @var17727401;
|
||||||
Warnings:
|
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
|
|
||||||
Warning 1329 No data - zero rows fetched, selected, or processed
|
Warning 1329 No data - zero rows fetched, selected, or processed
|
||||||
SELECT 1 INTO @var17727401 FROM t1 PROCEDURE ANALYSE();
|
SELECT 1 INTO @var17727401 FROM t1 PROCEDURE ANALYSE();
|
||||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PROCEDURE ANALYSE()' at line 1
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PROCEDURE ANALYSE()' at line 1
|
||||||
|
@ -693,8 +693,6 @@ a b
|
|||||||
-21 REPLACEd by REPLACE
|
-21 REPLACEd by REPLACE
|
||||||
FLUSH STATUS;
|
FLUSH STATUS;
|
||||||
SELECT * FROM t1 PARTITION (pNeg, `p10-99`) INTO OUTFILE 'loadtest.txt';
|
SELECT * FROM t1 PARTITION (pNeg, `p10-99`) INTO OUTFILE 'loadtest.txt';
|
||||||
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 INFORMATION_SCHEMA.SESSION_STATUS
|
SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
|
||||||
WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
|
WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
|
||||||
VARIABLE_NAME VARIABLE_VALUE
|
VARIABLE_NAME VARIABLE_VALUE
|
||||||
|
@ -244,8 +244,6 @@ prepare stmt1 from "insert into t1 select i from t1";
|
|||||||
execute stmt1;
|
execute stmt1;
|
||||||
execute stmt1;
|
execute stmt1;
|
||||||
prepare stmt1 from "select * from t1 into outfile '<MYSQLTEST_VARDIR>/tmp/f1.txt'";
|
prepare stmt1 from "select * from t1 into outfile '<MYSQLTEST_VARDIR>/tmp/f1.txt'";
|
||||||
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
|
|
||||||
execute stmt1;
|
execute stmt1;
|
||||||
deallocate prepare stmt1;
|
deallocate prepare stmt1;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
@ -20,8 +20,6 @@ else
|
|||||||
select '' as "SUCCESS";
|
select '' as "SUCCESS";
|
||||||
end if;
|
end if;
|
||||||
end|
|
end|
|
||||||
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
|
|
||||||
set @reprepare_count= 0;
|
set @reprepare_count= 0;
|
||||||
flush status;
|
flush status;
|
||||||
=====================================================================
|
=====================================================================
|
||||||
@ -1075,8 +1073,6 @@ call p1(x);
|
|||||||
return x;
|
return x;
|
||||||
end|
|
end|
|
||||||
create procedure p1(out x int) select max(a) from t1 into x;
|
create procedure p1(out x int) select max(a) from t1 into x;
|
||||||
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
|
|
||||||
prepare stmt from "select * from v1";
|
prepare stmt from "select * from v1";
|
||||||
execute stmt;
|
execute stmt;
|
||||||
f1()
|
f1()
|
||||||
@ -1089,8 +1085,6 @@ SUCCESS
|
|||||||
|
|
||||||
drop procedure p1;
|
drop procedure p1;
|
||||||
create procedure p1(out x int) select max(a) from t2 into x;
|
create procedure p1(out x int) select max(a) from t2 into x;
|
||||||
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
|
|
||||||
# XXX: used to be a bug. The prelocked list was not invalidated
|
# XXX: used to be a bug. The prelocked list was not invalidated
|
||||||
# and we kept opening table t1, whereas the procedure
|
# and we kept opening table t1, whereas the procedure
|
||||||
# is now referring to table t2
|
# is now referring to table t2
|
||||||
|
@ -20,8 +20,6 @@ else
|
|||||||
select '' as "SUCCESS";
|
select '' as "SUCCESS";
|
||||||
end if;
|
end if;
|
||||||
end|
|
end|
|
||||||
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
|
|
||||||
set @reprepare_count= 0;
|
set @reprepare_count= 0;
|
||||||
flush status;
|
flush status;
|
||||||
drop table if exists t1;
|
drop table if exists t1;
|
||||||
|
@ -646,13 +646,9 @@ show status like "Qcache_queries_in_cache";
|
|||||||
Variable_name Value
|
Variable_name Value
|
||||||
Qcache_queries_in_cache 0
|
Qcache_queries_in_cache 0
|
||||||
select * from t1 into outfile "query_cache.out.file";
|
select * from t1 into outfile "query_cache.out.file";
|
||||||
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 into outfile "query_cache.out.file";
|
select * from t1 into outfile "query_cache.out.file";
|
||||||
ERROR HY000: File 'query_cache.out.file' already exists
|
ERROR HY000: File 'query_cache.out.file' already exists
|
||||||
select * from t1 limit 1 into dumpfile "query_cache.dump.file";
|
select * from t1 limit 1 into dumpfile "query_cache.dump.file";
|
||||||
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
|
|
||||||
show status like "Qcache_queries_in_cache";
|
show status like "Qcache_queries_in_cache";
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
Qcache_queries_in_cache 0
|
Qcache_queries_in_cache 0
|
||||||
@ -1105,8 +1101,6 @@ Declare var1 int;
|
|||||||
select max(a) from t1 into var1;
|
select max(a) from t1 into var1;
|
||||||
return var1;
|
return var1;
|
||||||
end//
|
end//
|
||||||
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
|
|
||||||
create procedure `p1`()
|
create procedure `p1`()
|
||||||
begin
|
begin
|
||||||
select a, f1() from t1;
|
select a, f1() from t1;
|
||||||
|
@ -75,9 +75,6 @@ end;
|
|||||||
end case;
|
end case;
|
||||||
end
|
end
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
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
|
|
||||||
create procedure check_pk_inventory(in id integer)
|
create procedure check_pk_inventory(in id integer)
|
||||||
begin
|
begin
|
||||||
declare x integer;
|
declare x integer;
|
||||||
@ -95,8 +92,6 @@ MYSQL_ERRNO = 10000;
|
|||||||
end if;
|
end if;
|
||||||
end
|
end
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
create procedure check_pk_order(in id integer)
|
create procedure check_pk_order(in id integer)
|
||||||
begin
|
begin
|
||||||
declare x integer;
|
declare x integer;
|
||||||
@ -113,8 +108,6 @@ MYSQL_ERRNO = 10000;
|
|||||||
end if;
|
end if;
|
||||||
end
|
end
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
create trigger po_order_bi before insert on po_order
|
create trigger po_order_bi before insert on po_order
|
||||||
for each row
|
for each row
|
||||||
begin
|
begin
|
||||||
|
@ -936,8 +936,6 @@ SELECT rec1.a, rec1.b;
|
|||||||
END;
|
END;
|
||||||
END;
|
END;
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
CALL p1();
|
CALL p1();
|
||||||
ERROR 21000: The used SELECT statements have a different number of columns
|
ERROR 21000: The used SELECT statements have a different number of columns
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
@ -957,8 +955,6 @@ SELECT rec1.a, rec1.b;
|
|||||||
END;
|
END;
|
||||||
END;
|
END;
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
CALL p1();
|
CALL p1();
|
||||||
ERROR 21000: Operand should contain 2 column(s)
|
ERROR 21000: Operand should contain 2 column(s)
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
@ -976,8 +972,6 @@ SELECT rec1.a, rec1.b;
|
|||||||
END;
|
END;
|
||||||
END;
|
END;
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
CALL p1();
|
CALL p1();
|
||||||
rec1.a rec1.b
|
rec1.a rec1.b
|
||||||
10 b10
|
10 b10
|
||||||
|
@ -606,8 +606,6 @@ SELECT 10,'a','b' FROM t1 INTO rec1;
|
|||||||
SELECT rec1.a, rec1.b;
|
SELECT rec1.a, rec1.b;
|
||||||
END;
|
END;
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
CALL p1();
|
CALL p1();
|
||||||
ERROR 21000: The used SELECT statements have a different number of columns
|
ERROR 21000: The used SELECT statements have a different number of columns
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
@ -624,8 +622,6 @@ SELECT 10,'a' FROM t1 INTO rec1, rec1;
|
|||||||
SELECT rec1.a, rec1.b;
|
SELECT rec1.a, rec1.b;
|
||||||
END;
|
END;
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
CALL p1();
|
CALL p1();
|
||||||
ERROR 21000: Operand should contain 2 column(s)
|
ERROR 21000: Operand should contain 2 column(s)
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
@ -642,8 +638,6 @@ SELECT * FROM t1 INTO rec1;
|
|||||||
SELECT rec1.a, rec1.b;
|
SELECT rec1.a, rec1.b;
|
||||||
END;
|
END;
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
CALL p1();
|
CALL p1();
|
||||||
rec1.a rec1.b
|
rec1.a rec1.b
|
||||||
10 b10
|
10 b10
|
||||||
|
@ -957,8 +957,6 @@ SELECT * FROM t1 INTO v_a, v_b, v_c;
|
|||||||
SELECT v_a, v_b, v_c;
|
SELECT v_a, v_b, v_c;
|
||||||
END;
|
END;
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
CALL p1();
|
CALL p1();
|
||||||
v_a v_b v_c
|
v_a v_b v_c
|
||||||
1 b1 2001-01-01 10:20:30.123
|
1 b1 2001-01-01 10:20:30.123
|
||||||
|
@ -77,8 +77,6 @@ select count(*) as cnt from (select id1 from t1 force index (primary) where id1
|
|||||||
set id1_cond = id1_cond + 1;
|
set id1_cond = id1_cond + 1;
|
||||||
end while;
|
end while;
|
||||||
end//
|
end//
|
||||||
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
|
|
||||||
insert t1 select seq, seq, 1, 1, seq, seq, seq from seq_1_to_2000;
|
insert t1 select seq, seq, 1, 1, seq, seq, seq from seq_1_to_2000;
|
||||||
set @before=unix_timestamp();
|
set @before=unix_timestamp();
|
||||||
call select_test();
|
call select_test();
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
drop table if exists t1, t2;
|
drop table if exists t1, t2;
|
||||||
SELECT * FROM mysql.proc INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/proc.txt';
|
SELECT * FROM mysql.proc INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/proc.txt';
|
||||||
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
|
|
||||||
delete from mysql.proc;
|
delete from mysql.proc;
|
||||||
create procedure syntaxerror(t int)|
|
create procedure syntaxerror(t int)|
|
||||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
|
||||||
@ -14,8 +12,6 @@ create table t3 ( x int )|
|
|||||||
insert into t3 values (2), (3)|
|
insert into t3 values (2), (3)|
|
||||||
create procedure bad_into(out param int)
|
create procedure bad_into(out param int)
|
||||||
select x from t3 into param|
|
select x from t3 into param|
|
||||||
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
|
|
||||||
call bad_into(@x)|
|
call bad_into(@x)|
|
||||||
ERROR 42000: Result consisted of more than one row
|
ERROR 42000: Result consisted of more than one row
|
||||||
drop procedure bad_into|
|
drop procedure bad_into|
|
||||||
@ -2842,8 +2838,6 @@ DECLARE v VARCHAR(5) DEFAULT -1;
|
|||||||
SELECT b FROM t1 WHERE a = 2 INTO v;
|
SELECT b FROM t1 WHERE a = 2 INTO v;
|
||||||
RETURN v;
|
RETURN v;
|
||||||
END|
|
END|
|
||||||
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
|
|
||||||
|
|
||||||
# Here we check that the NOT_FOUND condition raised in f1()
|
# Here we check that the NOT_FOUND condition raised in f1()
|
||||||
# is not visible in the outer function (f2), i.e. the continue
|
# is not visible in the outer function (f2), i.e. the continue
|
||||||
|
@ -2136,8 +2136,6 @@ SELECT * FROM t1 INTO rec1;
|
|||||||
SELECT rec1.a, rec1.b;
|
SELECT rec1.a, rec1.b;
|
||||||
END;
|
END;
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
CALL p1();
|
CALL p1();
|
||||||
ERROR 21000: The used SELECT statements have a different number of columns
|
ERROR 21000: The used SELECT statements have a different number of columns
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
@ -2152,8 +2150,6 @@ SELECT * FROM t1 INTO rec1, rec1;
|
|||||||
SELECT rec1.a, rec1.b;
|
SELECT rec1.a, rec1.b;
|
||||||
END;
|
END;
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
CALL p1();
|
CALL p1();
|
||||||
ERROR 21000: Operand should contain 2 column(s)
|
ERROR 21000: Operand should contain 2 column(s)
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
@ -2168,8 +2164,6 @@ SELECT * FROM t1 INTO rec1;
|
|||||||
SELECT rec1.a, rec1.b;
|
SELECT rec1.a, rec1.b;
|
||||||
END;
|
END;
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
CALL p1();
|
CALL p1();
|
||||||
rec1.a rec1.b
|
rec1.a rec1.b
|
||||||
10 b10
|
10 b10
|
||||||
|
@ -320,8 +320,6 @@ repeat(select 1) into outfile 'b2';
|
|||||||
insert into test.t1 values (repeat("b2",3), x);
|
insert into test.t1 values (repeat("b2",3), x);
|
||||||
set x = x-1;
|
set x = x-1;
|
||||||
until x = 0 end repeat|
|
until x = 0 end repeat|
|
||||||
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
|
|
||||||
drop procedure b2|
|
drop procedure b2|
|
||||||
drop procedure if exists c|
|
drop procedure if exists c|
|
||||||
create procedure c(x int)
|
create procedure c(x int)
|
||||||
@ -4283,9 +4281,6 @@ select i as 'A local variable in a nested compound statement takes precedence o
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end|
|
end|
|
||||||
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
|
|
||||||
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
|
|
||||||
call bug5967("a - stored procedure parameter")|
|
call bug5967("a - stored procedure parameter")|
|
||||||
a
|
a
|
||||||
a - stored procedure parameter
|
a - stored procedure parameter
|
||||||
@ -5779,8 +5774,6 @@ end;
|
|||||||
select 1 from no_such_view limit 1 into x;
|
select 1 from no_such_view limit 1 into x;
|
||||||
return x;
|
return x;
|
||||||
end|
|
end|
|
||||||
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
|
|
||||||
create function func_8407_b() returns int
|
create function func_8407_b() returns int
|
||||||
begin
|
begin
|
||||||
declare x int default 0;
|
declare x int default 0;
|
||||||
|
@ -506,8 +506,6 @@ insert into t3 select a from t3;
|
|||||||
select count(*)*255 from t3 into table_size;
|
select count(*)*255 from t3 into table_size;
|
||||||
until table_size > max_table_size*2 end repeat;
|
until table_size > max_table_size*2 end repeat;
|
||||||
end|
|
end|
|
||||||
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
|
|
||||||
call bug14210_fill_table()|
|
call bug14210_fill_table()|
|
||||||
drop procedure bug14210_fill_table|
|
drop procedure bug14210_fill_table|
|
||||||
create table t4 like t3|
|
create table t4 like t3|
|
||||||
|
@ -11,8 +11,6 @@ insert into t1 values (null);
|
|||||||
select count(*) from t1 into @a;
|
select count(*) from t1 into @a;
|
||||||
return @a;
|
return @a;
|
||||||
end|
|
end|
|
||||||
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
|
|
||||||
reset master;
|
reset master;
|
||||||
insert into t2 values (bug23333(),1);
|
insert into t2 values (bug23333(),1);
|
||||||
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
|
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
|
||||||
|
@ -37,8 +37,6 @@ create index Language on CountryLanguage(Language);
|
|||||||
create index CityName on City(Name);
|
create index CityName on City(Name);
|
||||||
alter table City change population population int(11) null default 0;
|
alter table City change population population int(11) null default 0;
|
||||||
select max(id) from City into @max_city_id;
|
select max(id) from City into @max_city_id;
|
||||||
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
|
|
||||||
insert into City values (@max_city_id + 1,'Kilifarevo','BGR',NULL);
|
insert into City values (@max_city_id + 1,'Kilifarevo','BGR',NULL);
|
||||||
SELECT COUNT(*) FROM Country;
|
SELECT COUNT(*) FROM Country;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
|
@ -39,8 +39,6 @@ create index Language on CountryLanguage(Language);
|
|||||||
create index CityName on City(Name);
|
create index CityName on City(Name);
|
||||||
alter table City change population population int(11) null default 0;
|
alter table City change population population int(11) null default 0;
|
||||||
select max(id) from City into @max_city_id;
|
select max(id) from City into @max_city_id;
|
||||||
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
|
|
||||||
insert into City values (@max_city_id + 1,'Kilifarevo','BGR',NULL);
|
insert into City values (@max_city_id + 1,'Kilifarevo','BGR',NULL);
|
||||||
SELECT COUNT(*) FROM Country;
|
SELECT COUNT(*) FROM Country;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
|
@ -736,8 +736,6 @@ select user() into user;
|
|||||||
set NEW.username = user;
|
set NEW.username = user;
|
||||||
select count(*) from ((select 1) union (select 2)) as d1 into i;
|
select count(*) from ((select 1) union (select 2)) as d1 into i;
|
||||||
end|
|
end|
|
||||||
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
|
|
||||||
update t1 set data = 1;
|
update t1 set data = 1;
|
||||||
connection addconroot1;
|
connection addconroot1;
|
||||||
update t1 set data = 2;
|
update t1 set data = 2;
|
||||||
@ -2086,8 +2084,6 @@ FOR EACH ROW BEGIN
|
|||||||
SELECT 1 FROM t1 c WHERE
|
SELECT 1 FROM t1 c WHERE
|
||||||
(@bug51650 IS NULL OR @bug51650 != c.b) AND c.b = NEW.a LIMIT 1 INTO @foo;
|
(@bug51650 IS NULL OR @bug51650 != c.b) AND c.b = NEW.a LIMIT 1 INTO @foo;
|
||||||
END//
|
END//
|
||||||
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
|
|
||||||
SET @bug51650 = 1;
|
SET @bug51650 = 1;
|
||||||
INSERT IGNORE INTO t2 VALUES();
|
INSERT IGNORE INTO t2 VALUES();
|
||||||
INSERT IGNORE INTO t1 SET b = '777';
|
INSERT IGNORE INTO t1 SET b = '777';
|
||||||
|
@ -1541,8 +1541,6 @@ NULL
|
|||||||
(select 2) union (select 1 into @var);
|
(select 2) union (select 1 into @var);
|
||||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'into @var)' at line 1
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'into @var)' at line 1
|
||||||
(select 1) union (select 1) into @var;
|
(select 1) union (select 1) into @var;
|
||||||
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 2) union (select 1) into @var;
|
(select 2) union (select 1) into @var;
|
||||||
ERROR 42000: Result consisted of more than one row
|
ERROR 42000: Result consisted of more than one row
|
||||||
CREATE TABLE t1 (a int);
|
CREATE TABLE t1 (a int);
|
||||||
@ -1675,14 +1673,8 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp
|
|||||||
SELECT a FROM t1 UNION SELECT a INTO OUTFILE 'union.out.file6' FROM t1;
|
SELECT a FROM t1 UNION SELECT a INTO OUTFILE 'union.out.file6' FROM t1;
|
||||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'FROM t1' at line 1
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'FROM t1' at line 1
|
||||||
SELECT a FROM t1 UNION SELECT a FROM t1 INTO @v ;
|
SELECT a FROM t1 UNION SELECT a FROM t1 INTO @v ;
|
||||||
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 a FROM t1 UNION SELECT a FROM t1 INTO OUTFILE 'union.out.file5';
|
SELECT a FROM t1 UNION SELECT a FROM t1 INTO OUTFILE 'union.out.file5';
|
||||||
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 a FROM t1 UNION SELECT a FROM t1 INTO OUTFILE 'union.out.file6';
|
SELECT a FROM t1 UNION SELECT a FROM t1 INTO OUTFILE 'union.out.file6';
|
||||||
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 a INTO @v FROM t1 UNION SELECT a FROM t1;
|
SELECT a INTO @v FROM t1 UNION SELECT a FROM t1;
|
||||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT a FROM t1' at line 1
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT a FROM t1' at line 1
|
||||||
SELECT a INTO OUTFILE 'union.out.file7' FROM t1 UNION SELECT a FROM t1;
|
SELECT a INTO OUTFILE 'union.out.file7' FROM t1 UNION SELECT a FROM t1;
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
select variable_value from information_schema.global_status where variable_name="handler_read_key" into @global_read_key;
|
select variable_value from information_schema.global_status where variable_name="handler_read_key" into @global_read_key;
|
||||||
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
|
|
||||||
show columns from information_schema.client_statistics;
|
show columns from information_schema.client_statistics;
|
||||||
Field Type Null Key Default Extra
|
Field Type Null Key Default Extra
|
||||||
CLIENT varchar(64) NO NULL
|
CLIENT varchar(64) NO NULL
|
||||||
|
@ -2445,8 +2445,6 @@ SELECT Meaning FROM v1 INTO retn;
|
|||||||
RETURN retn;
|
RETURN retn;
|
||||||
END
|
END
|
||||||
//
|
//
|
||||||
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
|
|
||||||
CREATE VIEW v2 AS SELECT f1();
|
CREATE VIEW v2 AS SELECT f1();
|
||||||
select * from v2;
|
select * from v2;
|
||||||
f1()
|
f1()
|
||||||
@ -2618,8 +2616,6 @@ declare mx int;
|
|||||||
select max(a) from t1 into mx;
|
select max(a) from t1 into mx;
|
||||||
return mx;
|
return mx;
|
||||||
end//
|
end//
|
||||||
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
|
|
||||||
create view v1 as select f1() as a;
|
create view v1 as select f1() as a;
|
||||||
create view v2 as select * from v1;
|
create view v2 as select * from v1;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
@ -3162,14 +3158,10 @@ DROP VIEW v1;
|
|||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
DROP VIEW IF EXISTS v1;
|
DROP VIEW IF EXISTS v1;
|
||||||
SELECT * FROM (SELECT 1) AS t into @w;
|
SELECT * FROM (SELECT 1) AS t into @w;
|
||||||
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
|
|
||||||
CREATE VIEW v1 AS SELECT * FROM (SELECT 1) AS t into @w;
|
CREATE VIEW v1 AS SELECT * FROM (SELECT 1) AS t into @w;
|
||||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'into @w' at line 1
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'into @w' at line 1
|
||||||
# Previously the following would fail.
|
# Previously the following would fail.
|
||||||
SELECT * FROM (SELECT 1) AS t into @w;
|
SELECT * FROM (SELECT 1) AS t into @w;
|
||||||
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
|
|
||||||
drop view if exists view_24532_a;
|
drop view if exists view_24532_a;
|
||||||
drop view if exists view_24532_b;
|
drop view if exists view_24532_b;
|
||||||
drop table if exists table_24532;
|
drop table if exists table_24532;
|
||||||
@ -3966,8 +3958,6 @@ BEGIN
|
|||||||
SELECT a FROM v2 INTO @a;
|
SELECT a FROM v2 INTO @a;
|
||||||
RETURN @a;
|
RETURN @a;
|
||||||
END//
|
END//
|
||||||
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
|
|
||||||
# Trigger pre-locking when opening v2.
|
# Trigger pre-locking when opening v2.
|
||||||
CREATE VIEW v1 AS SELECT f1() FROM t1;
|
CREATE VIEW v1 AS SELECT f1() FROM t1;
|
||||||
SHOW CREATE VIEW v1;
|
SHOW CREATE VIEW v1;
|
||||||
|
@ -415,8 +415,6 @@ create table t2 (s1 int);
|
|||||||
drop function if exists f2;
|
drop function if exists f2;
|
||||||
create function f2 () returns int begin declare v int; select s1 from t2
|
create function f2 () returns int begin declare v int; select s1 from t2
|
||||||
into v; return v; end//
|
into v; return v; end//
|
||||||
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
|
|
||||||
create algorithm=TEMPTABLE view v1 as select f2() from t1;
|
create algorithm=TEMPTABLE view v1 as select f2() from t1;
|
||||||
create algorithm=MERGE view v2 as select f2() from t1;
|
create algorithm=MERGE view v2 as select f2() from t1;
|
||||||
create algorithm=TEMPTABLE SQL SECURITY INVOKER view v3 as select f2() from t1;
|
create algorithm=TEMPTABLE SQL SECURITY INVOKER view v3 as select f2() from t1;
|
||||||
@ -459,8 +457,6 @@ create table t2 (s1 int);
|
|||||||
drop function if exists f2;
|
drop function if exists f2;
|
||||||
create function f2 () returns int begin declare v int; select s1 from t2
|
create function f2 () returns int begin declare v int; select s1 from t2
|
||||||
into v; return v; end//
|
into v; return v; end//
|
||||||
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
|
|
||||||
create user mysqltest_1@localhost;
|
create user mysqltest_1@localhost;
|
||||||
grant select on t1 to mysqltest_1@localhost;
|
grant select on t1 to mysqltest_1@localhost;
|
||||||
grant execute on function f2 to mysqltest_1@localhost;
|
grant execute on function f2 to mysqltest_1@localhost;
|
||||||
|
@ -23,8 +23,6 @@ a:=a+1;
|
|||||||
INSERT INTO t1 VALUES (a,'pkg1 initialization');
|
INSERT INTO t1 VALUES (a,'pkg1 initialization');
|
||||||
END;
|
END;
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
CALL pkg1.p1;
|
CALL pkg1.p1;
|
||||||
SELECT * FROM t1 ORDER BY a;
|
SELECT * FROM t1 ORDER BY a;
|
||||||
a routine
|
a routine
|
||||||
|
@ -2062,8 +2062,6 @@ $$
|
|||||||
CALL p1.p1();
|
CALL p1.p1();
|
||||||
@a
|
@a
|
||||||
11
|
11
|
||||||
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
|
|
||||||
CALL p1.p1();
|
CALL p1.p1();
|
||||||
@a
|
@a
|
||||||
12
|
12
|
||||||
@ -2095,8 +2093,6 @@ BEGIN
|
|||||||
SELECT MAX(a) FROM t1 INTO @a;
|
SELECT MAX(a) FROM t1 INTO @a;
|
||||||
END;
|
END;
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
CALL p1.p1();
|
CALL p1.p1();
|
||||||
@a
|
@a
|
||||||
11
|
11
|
||||||
@ -2130,8 +2126,6 @@ BEGIN
|
|||||||
SELECT 1 FROM t1 INTO @a;
|
SELECT 1 FROM t1 INTO @a;
|
||||||
END;
|
END;
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
CALL p1.p1();
|
CALL p1.p1();
|
||||||
ERROR 42S02: Table 'test.t1' doesn't exist
|
ERROR 42S02: Table 'test.t1' doesn't exist
|
||||||
SELECT p1.f1();
|
SELECT p1.f1();
|
||||||
@ -2690,9 +2684,6 @@ SELECT * FROM t1 INTO b;
|
|||||||
SELECT b.a, b.b;
|
SELECT b.a, b.b;
|
||||||
END;
|
END;
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
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
|
|
||||||
CALL p1.p1;
|
CALL p1.p1;
|
||||||
b.a b.b
|
b.a b.b
|
||||||
10 b
|
10 b
|
||||||
|
@ -2835,8 +2835,6 @@ SELECT * FROM t1 INTO rec1;
|
|||||||
SELECT rec1.a, rec1.b;
|
SELECT rec1.a, rec1.b;
|
||||||
END;
|
END;
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
CALL p1();
|
CALL p1();
|
||||||
ERROR 21000: The used SELECT statements have a different number of columns
|
ERROR 21000: The used SELECT statements have a different number of columns
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
@ -2851,8 +2849,6 @@ SELECT * FROM t1 INTO rec1, rec1;
|
|||||||
SELECT rec1.a, rec1.b;
|
SELECT rec1.a, rec1.b;
|
||||||
END;
|
END;
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
CALL p1();
|
CALL p1();
|
||||||
ERROR 21000: Operand should contain 2 column(s)
|
ERROR 21000: Operand should contain 2 column(s)
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
@ -2867,8 +2863,6 @@ SELECT * FROM t1 INTO rec1;
|
|||||||
SELECT rec1.a, rec1.b;
|
SELECT rec1.a, rec1.b;
|
||||||
END;
|
END;
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
CALL p1();
|
CALL p1();
|
||||||
rec1.a rec1.b
|
rec1.a rec1.b
|
||||||
10 b10
|
10 b10
|
||||||
@ -2884,8 +2878,6 @@ SELECT 10,'a','b' FROM t1 INTO rec1;
|
|||||||
SELECT rec1.a, rec1.b;
|
SELECT rec1.a, rec1.b;
|
||||||
END;
|
END;
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
CALL p1();
|
CALL p1();
|
||||||
ERROR 21000: The used SELECT statements have a different number of columns
|
ERROR 21000: The used SELECT statements have a different number of columns
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
@ -2900,8 +2892,6 @@ SELECT 10,'a' FROM t1 INTO rec1, rec1;
|
|||||||
SELECT rec1.a, rec1.b;
|
SELECT rec1.a, rec1.b;
|
||||||
END;
|
END;
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
CALL p1();
|
CALL p1();
|
||||||
ERROR 21000: Operand should contain 2 column(s)
|
ERROR 21000: Operand should contain 2 column(s)
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
@ -2916,8 +2906,6 @@ SELECT * FROM t1 INTO rec1;
|
|||||||
SELECT rec1.a, rec1.b;
|
SELECT rec1.a, rec1.b;
|
||||||
END;
|
END;
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
CALL p1();
|
CALL p1();
|
||||||
rec1.a rec1.b
|
rec1.a rec1.b
|
||||||
10 b10
|
10 b10
|
||||||
@ -2934,8 +2922,6 @@ SELECT * FROM t1 INTO rec1;
|
|||||||
SELECT rec1.a, rec1.b;
|
SELECT rec1.a, rec1.b;
|
||||||
END;
|
END;
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
CALL p1();
|
CALL p1();
|
||||||
ERROR 21000: The used SELECT statements have a different number of columns
|
ERROR 21000: The used SELECT statements have a different number of columns
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
@ -2951,8 +2937,6 @@ SELECT * FROM t1 INTO rec1, rec1;
|
|||||||
SELECT rec1.a, rec1.b;
|
SELECT rec1.a, rec1.b;
|
||||||
END;
|
END;
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
CALL p1();
|
CALL p1();
|
||||||
ERROR 21000: Operand should contain 2 column(s)
|
ERROR 21000: Operand should contain 2 column(s)
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
@ -2968,8 +2952,6 @@ SELECT * FROM t1 INTO rec1;
|
|||||||
SELECT rec1.a, rec1.b;
|
SELECT rec1.a, rec1.b;
|
||||||
END;
|
END;
|
||||||
$$
|
$$
|
||||||
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
|
|
||||||
CALL p1();
|
CALL p1();
|
||||||
rec1.a rec1.b
|
rec1.a rec1.b
|
||||||
10 b10
|
10 b10
|
||||||
|
@ -6,8 +6,6 @@ CREATE TABLE t1 (a INT NOT NULL PRIMARY KEY) engine=innodb;
|
|||||||
INSERT INTO t1 VALUES (1);
|
INSERT INTO t1 VALUES (1);
|
||||||
START TRANSACTION;
|
START TRANSACTION;
|
||||||
SELECT a AS a_con1 FROM t1 INTO @a FOR UPDATE;
|
SELECT a AS a_con1 FROM t1 INTO @a FOR UPDATE;
|
||||||
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
|
|
||||||
connect con2,localhost,root,,;
|
connect con2,localhost,root,,;
|
||||||
SET sql_mode='ORACLE';
|
SET sql_mode='ORACLE';
|
||||||
START TRANSACTION;
|
START TRANSACTION;
|
||||||
@ -16,8 +14,6 @@ connection default;
|
|||||||
UPDATE t1 SET a=a+100;
|
UPDATE t1 SET a=a+100;
|
||||||
COMMIT;
|
COMMIT;
|
||||||
connection con2;
|
connection con2;
|
||||||
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 a AS con2 FROM t1;
|
SELECT a AS con2 FROM t1;
|
||||||
con2
|
con2
|
||||||
101
|
101
|
||||||
|
@ -6,8 +6,6 @@ create database mysqltest1;
|
|||||||
create table mysqltest1.t1 (n int);
|
create table mysqltest1.t1 (n int);
|
||||||
insert into mysqltest1.t1 values (1);
|
insert into mysqltest1.t1 values (1);
|
||||||
select * from mysqltest1.t1 into outfile 'mysqltest1/f1.txt';
|
select * from mysqltest1.t1 into outfile 'mysqltest1/f1.txt';
|
||||||
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
|
|
||||||
create table mysqltest1.t2 (n int);
|
create table mysqltest1.t2 (n int);
|
||||||
create table mysqltest1.t3 (n int);
|
create table mysqltest1.t3 (n int);
|
||||||
drop database mysqltest1;
|
drop database mysqltest1;
|
||||||
|
@ -42,8 +42,6 @@ INSERT INTO t1 (col_a) VALUES (test_replication_sf());
|
|||||||
INSERT INTO t1 (col_a) VALUES (test_replication_sf());
|
INSERT INTO t1 (col_a) VALUES (test_replication_sf());
|
||||||
connection slave;
|
connection slave;
|
||||||
select * from t1 into outfile "../../tmp/t1_slave.txt";
|
select * from t1 into outfile "../../tmp/t1_slave.txt";
|
||||||
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
|
|
||||||
connection master;
|
connection master;
|
||||||
create temporary table t1_slave select * from t1 where 1=0;
|
create temporary table t1_slave select * from t1 where 1=0;
|
||||||
load data infile '../../tmp/t1_slave.txt' into table t1_slave;
|
load data infile '../../tmp/t1_slave.txt' into table t1_slave;
|
||||||
|
@ -1540,8 +1540,6 @@ BEGIN
|
|||||||
SELECT 1 FROM t2 INTO @a;
|
SELECT 1 FROM t2 INTO @a;
|
||||||
RETURN 1;
|
RETURN 1;
|
||||||
END|
|
END|
|
||||||
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 f1();
|
SELECT f1();
|
||||||
ERROR 42S02: Table 'test.t2' doesn't exist
|
ERROR 42S02: Table 'test.t2' doesn't exist
|
||||||
CREATE TABLE t1(a INT);
|
CREATE TABLE t1(a INT);
|
||||||
|
@ -1539,8 +1539,6 @@ BEGIN
|
|||||||
SELECT 1 FROM t2 INTO @a;
|
SELECT 1 FROM t2 INTO @a;
|
||||||
RETURN 1;
|
RETURN 1;
|
||||||
END|
|
END|
|
||||||
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 f1();
|
SELECT f1();
|
||||||
ERROR 42S02: Table 'test.t2' doesn't exist
|
ERROR 42S02: Table 'test.t2' doesn't exist
|
||||||
CREATE TABLE t1(a INT);
|
CREATE TABLE t1(a INT);
|
||||||
|
@ -1544,8 +1544,6 @@ BEGIN
|
|||||||
SELECT 1 FROM t2 INTO @a;
|
SELECT 1 FROM t2 INTO @a;
|
||||||
RETURN 1;
|
RETURN 1;
|
||||||
END|
|
END|
|
||||||
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 f1();
|
SELECT f1();
|
||||||
ERROR 42S02: Table 'test.t2' doesn't exist
|
ERROR 42S02: Table 'test.t2' doesn't exist
|
||||||
CREATE TABLE t1(a INT);
|
CREATE TABLE t1(a INT);
|
||||||
|
@ -1540,8 +1540,6 @@ BEGIN
|
|||||||
SELECT 1 FROM t2 INTO @a;
|
SELECT 1 FROM t2 INTO @a;
|
||||||
RETURN 1;
|
RETURN 1;
|
||||||
END|
|
END|
|
||||||
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 f1();
|
SELECT f1();
|
||||||
ERROR 42S02: Table 'test.t2' doesn't exist
|
ERROR 42S02: Table 'test.t2' doesn't exist
|
||||||
CREATE TABLE t1(a INT);
|
CREATE TABLE t1(a INT);
|
||||||
|
@ -35,10 +35,6 @@ FROM test.part_tbl; -- debug to show the problem
|
|||||||
SET del_count = del_count - 2;
|
SET del_count = del_count - 2;
|
||||||
END WHILE;
|
END WHILE;
|
||||||
END|
|
END|
|
||||||
Warnings:
|
|
||||||
Level Warning
|
|
||||||
Code 1287
|
|
||||||
Message '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
|
|
||||||
CALL test.proc_part();
|
CALL test.proc_part();
|
||||||
internal_count del_count
|
internal_count del_count
|
||||||
999 1000
|
999 1000
|
||||||
|
@ -11,8 +11,6 @@ connection default;
|
|||||||
SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST
|
SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST
|
||||||
WHERE INFO="UPDATE bug51920 SET i=2"
|
WHERE INFO="UPDATE bug51920 SET i=2"
|
||||||
INTO @thread_id;
|
INTO @thread_id;
|
||||||
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
|
|
||||||
KILL @thread_id;
|
KILL @thread_id;
|
||||||
connection con1;
|
connection con1;
|
||||||
Got one of the listed errors
|
Got one of the listed errors
|
||||||
|
@ -16,8 +16,6 @@ connection default;
|
|||||||
SET DEBUG_SYNC='now WAIT_FOR found_row';
|
SET DEBUG_SYNC='now WAIT_FOR found_row';
|
||||||
select event_id from performance_schema.events_statements_current
|
select event_id from performance_schema.events_statements_current
|
||||||
where thread_id = @con1_thread_id into @con1_stmt_id;
|
where thread_id = @con1_thread_id into @con1_stmt_id;
|
||||||
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 EVENT_NAME, WORK_COMPLETED, WORK_ESTIMATED
|
select EVENT_NAME, WORK_COMPLETED, WORK_ESTIMATED
|
||||||
from performance_schema.events_stages_current
|
from performance_schema.events_stages_current
|
||||||
where (thread_id = @con1_thread_id);
|
where (thread_id = @con1_thread_id);
|
||||||
|
@ -6,8 +6,6 @@ SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES
|
|||||||
WHERE TABLE_SCHEMA='performance_schema'
|
WHERE TABLE_SCHEMA='performance_schema'
|
||||||
ORDER BY TABLE_NAME;
|
ORDER BY TABLE_NAME;
|
||||||
SELECT COUNT(*) FROM table_list INTO @table_count;
|
SELECT COUNT(*) FROM table_list INTO @table_count;
|
||||||
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
|
|
||||||
#
|
#
|
||||||
# For each table in the performance schema, attempt HANDLER...OPEN,
|
# For each table in the performance schema, attempt HANDLER...OPEN,
|
||||||
# which should fail with an error 1031, ER_ILLEGAL_HA.
|
# which should fail with an error 1031, ER_ILLEGAL_HA.
|
||||||
|
@ -218,10 +218,6 @@ close pfs_cursor;
|
|||||||
signal sqlstate '01000' set message_text='Done', mysql_errno=12000;
|
signal sqlstate '01000' set message_text='Done', mysql_errno=12000;
|
||||||
end
|
end
|
||||||
$
|
$
|
||||||
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
|
|
||||||
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
|
|
||||||
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
|
|
||||||
show global variables like "performance_schema%";
|
show global variables like "performance_schema%";
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
performance_schema ON
|
performance_schema ON
|
||||||
|
@ -16,8 +16,6 @@ connection master;
|
|||||||
select ID from INFORMATION_SCHEMA.PROCESSLIST
|
select ID from INFORMATION_SCHEMA.PROCESSLIST
|
||||||
where COMMAND = "Binlog Dump"
|
where COMMAND = "Binlog Dump"
|
||||||
into @master_dump_pid;
|
into @master_dump_pid;
|
||||||
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 COMMAND, STATE
|
select COMMAND, STATE
|
||||||
from INFORMATION_SCHEMA.PROCESSLIST
|
from INFORMATION_SCHEMA.PROCESSLIST
|
||||||
where ID = @master_dump_pid;
|
where ID = @master_dump_pid;
|
||||||
@ -33,8 +31,6 @@ connection slave;
|
|||||||
select ID from INFORMATION_SCHEMA.PROCESSLIST
|
select ID from INFORMATION_SCHEMA.PROCESSLIST
|
||||||
where STATE like "Waiting for master to send event%"
|
where STATE like "Waiting for master to send event%"
|
||||||
into @slave_io_pid;
|
into @slave_io_pid;
|
||||||
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 COMMAND, STATE
|
select COMMAND, STATE
|
||||||
from INFORMATION_SCHEMA.PROCESSLIST
|
from INFORMATION_SCHEMA.PROCESSLIST
|
||||||
where ID = @slave_io_pid;
|
where ID = @slave_io_pid;
|
||||||
@ -47,8 +43,6 @@ NAME TYPE PROCESSLIST_COMMAND PROCESSLIST_STATE
|
|||||||
select ID from INFORMATION_SCHEMA.PROCESSLIST
|
select ID from INFORMATION_SCHEMA.PROCESSLIST
|
||||||
where STATE like "Slave has read all relay log%"
|
where STATE like "Slave has read all relay log%"
|
||||||
into @slave_sql_pid;
|
into @slave_sql_pid;
|
||||||
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 COMMAND, STATE
|
select COMMAND, STATE
|
||||||
from INFORMATION_SCHEMA.PROCESSLIST
|
from INFORMATION_SCHEMA.PROCESSLIST
|
||||||
where ID = @slave_sql_pid;
|
where ID = @slave_sql_pid;
|
||||||
|
@ -93,8 +93,6 @@ SELECT thread_id FROM performance_schema.threads
|
|||||||
WHERE PROCESSLIST_ID = conid INTO pid;
|
WHERE PROCESSLIST_ID = conid INTO pid;
|
||||||
END;
|
END;
|
||||||
|
|
|
|
||||||
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
|
|
||||||
CALL t_ps_proc(connection_id(), @p_id);
|
CALL t_ps_proc(connection_id(), @p_id);
|
||||||
DROP FUNCTION IF EXISTS t_ps_proc;
|
DROP FUNCTION IF EXISTS t_ps_proc;
|
||||||
CREATE FUNCTION t_ps_func(conid INT) RETURNS int
|
CREATE FUNCTION t_ps_func(conid INT) RETURNS int
|
||||||
|
@ -6,8 +6,6 @@ create database mysqltest1;
|
|||||||
create table mysqltest1.t1 (n int);
|
create table mysqltest1.t1 (n int);
|
||||||
insert into mysqltest1.t1 values (1);
|
insert into mysqltest1.t1 values (1);
|
||||||
select * from mysqltest1.t1 into outfile 'mysqltest1/f1.txt';
|
select * from mysqltest1.t1 into outfile 'mysqltest1/f1.txt';
|
||||||
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
|
|
||||||
create table mysqltest1.t2 (n int);
|
create table mysqltest1.t2 (n int);
|
||||||
create table mysqltest1.t3 (n int);
|
create table mysqltest1.t3 (n int);
|
||||||
drop database mysqltest1;
|
drop database mysqltest1;
|
||||||
|
@ -51,10 +51,6 @@ DELETE FROM test.regular_tbl WHERE id = del_count;
|
|||||||
SET del_count = del_count - 2;
|
SET del_count = del_count - 2;
|
||||||
END WHILE;
|
END WHILE;
|
||||||
END|
|
END|
|
||||||
Warnings:
|
|
||||||
Level Warning
|
|
||||||
Code 1287
|
|
||||||
Message '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
|
|
||||||
CREATE PROCEDURE test.proc_bykey()
|
CREATE PROCEDURE test.proc_bykey()
|
||||||
BEGIN
|
BEGIN
|
||||||
DECLARE ins_count INT DEFAULT 1000;
|
DECLARE ins_count INT DEFAULT 1000;
|
||||||
@ -76,10 +72,6 @@ DELETE FROM test.bykey_tbl WHERE id = del_count;
|
|||||||
SET del_count = del_count - 2;
|
SET del_count = del_count - 2;
|
||||||
END WHILE;
|
END WHILE;
|
||||||
END|
|
END|
|
||||||
Warnings:
|
|
||||||
Level Warning
|
|
||||||
Code 1287
|
|
||||||
Message '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
|
|
||||||
CREATE PROCEDURE test.proc_byrange()
|
CREATE PROCEDURE test.proc_byrange()
|
||||||
BEGIN
|
BEGIN
|
||||||
DECLARE ins_count INT DEFAULT 1000;
|
DECLARE ins_count INT DEFAULT 1000;
|
||||||
@ -101,10 +93,6 @@ DELETE FROM test.byrange_tbl WHERE id = del_count;
|
|||||||
SET del_count = del_count - 2;
|
SET del_count = del_count - 2;
|
||||||
END WHILE;
|
END WHILE;
|
||||||
END|
|
END|
|
||||||
Warnings:
|
|
||||||
Level Warning
|
|
||||||
Code 1287
|
|
||||||
Message '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
|
|
||||||
begin;
|
begin;
|
||||||
CALL test.proc_norm();
|
CALL test.proc_norm();
|
||||||
commit;
|
commit;
|
||||||
|
@ -26,10 +26,6 @@ DELETE FROM test.regular_tbl WHERE id = del_count;
|
|||||||
SET del_count = del_count - 2;
|
SET del_count = del_count - 2;
|
||||||
END WHILE;
|
END WHILE;
|
||||||
END|
|
END|
|
||||||
Warnings:
|
|
||||||
Level Warning
|
|
||||||
Code 1287
|
|
||||||
Message '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
|
|
||||||
CALL test.proc_norm();
|
CALL test.proc_norm();
|
||||||
connection slave;
|
connection slave;
|
||||||
connection master;
|
connection master;
|
||||||
|
@ -259,8 +259,6 @@ connection server_2;
|
|||||||
*** Restart the slave server to prove 'gtid_slave_pos_innodb' autodiscovery ***
|
*** Restart the slave server to prove 'gtid_slave_pos_innodb' autodiscovery ***
|
||||||
connection server_2;
|
connection server_2;
|
||||||
SELECT max(seq_no) FROM mysql.gtid_slave_pos_InnoDB into @seq_no;
|
SELECT max(seq_no) FROM mysql.gtid_slave_pos_InnoDB into @seq_no;
|
||||||
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
|
|
||||||
connection server_1;
|
connection server_1;
|
||||||
INSERT INTO t2(a) SELECT 1+MAX(a) FROM t2;
|
INSERT INTO t2(a) SELECT 1+MAX(a) FROM t2;
|
||||||
include/save_master_gtid.inc
|
include/save_master_gtid.inc
|
||||||
|
@ -42,8 +42,6 @@ INSERT INTO t1 (col_a) VALUES (test_replication_sf());
|
|||||||
INSERT INTO t1 (col_a) VALUES (test_replication_sf());
|
INSERT INTO t1 (col_a) VALUES (test_replication_sf());
|
||||||
connection slave;
|
connection slave;
|
||||||
select * from t1 into outfile "../../tmp/t1_slave.txt";
|
select * from t1 into outfile "../../tmp/t1_slave.txt";
|
||||||
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
|
|
||||||
connection master;
|
connection master;
|
||||||
create temporary table t1_slave select * from t1 where 1=0;
|
create temporary table t1_slave select * from t1 where 1=0;
|
||||||
load data infile '../../tmp/t1_slave.txt' into table t1_slave;
|
load data infile '../../tmp/t1_slave.txt' into table t1_slave;
|
||||||
|
@ -17,8 +17,6 @@ ERROR HY000: Variable 'innodb_fil_make_page_dirty_debug' is a GLOBAL variable an
|
|||||||
create table t1 (f1 int primary key) engine = innodb;
|
create table t1 (f1 int primary key) engine = innodb;
|
||||||
select space from information_schema.innodb_sys_tables
|
select space from information_schema.innodb_sys_tables
|
||||||
where name = 'test/t1' into @space_id;
|
where name = 'test/t1' into @space_id;
|
||||||
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
|
|
||||||
set global innodb_saved_page_number_debug = 0;
|
set global innodb_saved_page_number_debug = 0;
|
||||||
set global innodb_fil_make_page_dirty_debug = @space_id;
|
set global innodb_fil_make_page_dirty_debug = @space_id;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
@ -17,8 +17,6 @@ ERROR HY000: Variable 'innodb_saved_page_number_debug' is a GLOBAL variable and
|
|||||||
create table t1 (f1 int primary key) engine = innodb;
|
create table t1 (f1 int primary key) engine = innodb;
|
||||||
select space from information_schema.innodb_sys_tables
|
select space from information_schema.innodb_sys_tables
|
||||||
where name = 'test/t1' into @space_id;
|
where name = 'test/t1' into @space_id;
|
||||||
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
|
|
||||||
set global innodb_saved_page_number_debug = 0;
|
set global innodb_saved_page_number_debug = 0;
|
||||||
set global innodb_fil_make_page_dirty_debug = @space_id;
|
set global innodb_fil_make_page_dirty_debug = @space_id;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
@ -6,8 +6,6 @@ INSERT INTO t1 VALUES ("one"),("two"),("three"),("four"),("five");
|
|||||||
SHOW VARIABLES LIKE 'secure_file_priv';
|
SHOW VARIABLES LIKE 'secure_file_priv';
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
secure_file_priv
|
secure_file_priv
|
||||||
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
|
|
||||||
c1
|
c1
|
||||||
one
|
one
|
||||||
two
|
two
|
||||||
|
@ -199,8 +199,6 @@ a
|
|||||||
2
|
2
|
||||||
1
|
1
|
||||||
select row_start from t where a=3 into @tm;
|
select row_start from t where a=3 into @tm;
|
||||||
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
|
|
||||||
alter table t add column b int;
|
alter table t add column b int;
|
||||||
select @tm=row_start from t where a=3;
|
select @tm=row_start from t where a=3;
|
||||||
@tm=row_start
|
@tm=row_start
|
||||||
|
@ -10,8 +10,6 @@ insert into t1 values ();
|
|||||||
set @ts0= now(6);
|
set @ts0= now(6);
|
||||||
insert into t1 values ();
|
insert into t1 values ();
|
||||||
select sys_trx_start from t1 where id = last_insert_id() into @tx0;
|
select sys_trx_start from t1 where id = last_insert_id() into @tx0;
|
||||||
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 transaction_id = @tx0 from mysql.transaction_registry
|
select transaction_id = @tx0 from mysql.transaction_registry
|
||||||
order by transaction_id desc limit 1;
|
order by transaction_id desc limit 1;
|
||||||
transaction_id = @tx0
|
transaction_id = @tx0
|
||||||
@ -19,8 +17,6 @@ transaction_id = @tx0
|
|||||||
set @ts1= now(6);
|
set @ts1= now(6);
|
||||||
insert into t1 values ();
|
insert into t1 values ();
|
||||||
select sys_trx_start from t1 where id = last_insert_id() into @tx1;
|
select sys_trx_start from t1 where id = last_insert_id() into @tx1;
|
||||||
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 transaction_id = @tx1 from mysql.transaction_registry
|
select transaction_id = @tx1 from mysql.transaction_registry
|
||||||
order by transaction_id desc limit 1;
|
order by transaction_id desc limit 1;
|
||||||
transaction_id = @tx1
|
transaction_id = @tx1
|
||||||
@ -28,8 +24,6 @@ transaction_id = @tx1
|
|||||||
set @ts2= now(6);
|
set @ts2= now(6);
|
||||||
insert into t1 values ();
|
insert into t1 values ();
|
||||||
select sys_trx_start from t1 where id = last_insert_id() into @tx2;
|
select sys_trx_start from t1 where id = last_insert_id() into @tx2;
|
||||||
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 transaction_id = @tx2 from mysql.transaction_registry
|
select transaction_id = @tx2 from mysql.transaction_registry
|
||||||
order by transaction_id desc limit 1;
|
order by transaction_id desc limit 1;
|
||||||
transaction_id = @tx2
|
transaction_id = @tx2
|
||||||
@ -72,32 +66,24 @@ trt_trx_sees(0, @tx2)
|
|||||||
set transaction isolation level read uncommitted;
|
set transaction isolation level read uncommitted;
|
||||||
insert into t1 values ();
|
insert into t1 values ();
|
||||||
select sys_trx_start from t1 where id = last_insert_id() into @tx3;
|
select sys_trx_start from t1 where id = last_insert_id() into @tx3;
|
||||||
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 isolation_level = 'READ-UNCOMMITTED' from mysql.transaction_registry where transaction_id = @tx3;
|
select isolation_level = 'READ-UNCOMMITTED' from mysql.transaction_registry where transaction_id = @tx3;
|
||||||
isolation_level = 'READ-UNCOMMITTED'
|
isolation_level = 'READ-UNCOMMITTED'
|
||||||
1
|
1
|
||||||
set transaction isolation level read committed;
|
set transaction isolation level read committed;
|
||||||
insert into t1 values ();
|
insert into t1 values ();
|
||||||
select sys_trx_start from t1 where id = last_insert_id() into @tx4;
|
select sys_trx_start from t1 where id = last_insert_id() into @tx4;
|
||||||
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 isolation_level = 'READ-COMMITTED' from mysql.transaction_registry where transaction_id = @tx4;
|
select isolation_level = 'READ-COMMITTED' from mysql.transaction_registry where transaction_id = @tx4;
|
||||||
isolation_level = 'READ-COMMITTED'
|
isolation_level = 'READ-COMMITTED'
|
||||||
1
|
1
|
||||||
set transaction isolation level serializable;
|
set transaction isolation level serializable;
|
||||||
insert into t1 values ();
|
insert into t1 values ();
|
||||||
select sys_trx_start from t1 where id = last_insert_id() into @tx5;
|
select sys_trx_start from t1 where id = last_insert_id() into @tx5;
|
||||||
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 isolation_level = 'SERIALIZABLE' from mysql.transaction_registry where transaction_id = @tx5;
|
select isolation_level = 'SERIALIZABLE' from mysql.transaction_registry where transaction_id = @tx5;
|
||||||
isolation_level = 'SERIALIZABLE'
|
isolation_level = 'SERIALIZABLE'
|
||||||
1
|
1
|
||||||
set transaction isolation level repeatable read;
|
set transaction isolation level repeatable read;
|
||||||
insert into t1 values ();
|
insert into t1 values ();
|
||||||
select sys_trx_start from t1 where id = last_insert_id() into @tx6;
|
select sys_trx_start from t1 where id = last_insert_id() into @tx6;
|
||||||
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 isolation_level = 'REPEATABLE-READ' from mysql.transaction_registry where transaction_id = @tx6;
|
select isolation_level = 'REPEATABLE-READ' from mysql.transaction_registry where transaction_id = @tx6;
|
||||||
isolation_level = 'REPEATABLE-READ'
|
isolation_level = 'REPEATABLE-READ'
|
||||||
1
|
1
|
||||||
|
@ -271,12 +271,8 @@ t3 CREATE TABLE `t3` (
|
|||||||
## For versioned table
|
## For versioned table
|
||||||
insert into t1 values (1);
|
insert into t1 values (1);
|
||||||
select row_start from t1 into @row_start;
|
select row_start from t1 into @row_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
|
|
||||||
insert into t0 (y) values (2);
|
insert into t0 (y) values (2);
|
||||||
select st from t0 into @st;
|
select st from t0 into @st;
|
||||||
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
|
|
||||||
create or replace table t2 with system versioning as select * from t1;
|
create or replace table t2 with system versioning as select * from t1;
|
||||||
show create table t2;
|
show create table t2;
|
||||||
Table Create Table
|
Table Create Table
|
||||||
@ -339,12 +335,8 @@ ERROR 42S21: Duplicate column name 'row_end'
|
|||||||
# Prepare checking for historical row
|
# Prepare checking for historical row
|
||||||
delete from t1;
|
delete from t1;
|
||||||
select row_end from t1 for system_time all into @row_end;
|
select row_end from t1 for system_time all into @row_end;
|
||||||
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
|
|
||||||
delete from t0;
|
delete from t0;
|
||||||
select en from t0 for system_time all into @en;
|
select en from t0 for system_time all into @en;
|
||||||
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
|
|
||||||
## Combinations of versioned + non-versioned
|
## Combinations of versioned + non-versioned
|
||||||
create or replace table t2 (y int);
|
create or replace table t2 (y int);
|
||||||
insert into t2 values (3);
|
insert into t2 values (3);
|
||||||
@ -365,14 +357,10 @@ insert into t2 (y) values (1), (2);
|
|||||||
delete from t2 where y = 2;
|
delete from t2 where y = 2;
|
||||||
create or replace table t3 select * from t2 for system_time all;
|
create or replace table t3 select * from t2 for system_time all;
|
||||||
select st, en from t3 where y = 1 into @st, @en;
|
select st, en from t3 where y = 1 into @st, @en;
|
||||||
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 y from t2 for system_time all where st = @st and en = @en;
|
select y from t2 for system_time all where st = @st and en = @en;
|
||||||
y
|
y
|
||||||
1
|
1
|
||||||
select st, en from t3 where y = 2 into @st, @en;
|
select st, en from t3 where y = 2 into @st, @en;
|
||||||
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 y from t2 for system_time all where st = @st and en = @en;
|
select y from t2 for system_time all where st = @st and en = @en;
|
||||||
y
|
y
|
||||||
2
|
2
|
||||||
|
@ -274,8 +274,6 @@ on update cascade
|
|||||||
) engine=innodb;
|
) engine=innodb;
|
||||||
insert into parent (value) values (23);
|
insert into parent (value) values (23);
|
||||||
select id, value from parent into @id, @value;
|
select id, value from parent into @id, @value;
|
||||||
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
|
|
||||||
insert into child values (default, @id, @value);
|
insert into child values (default, @id, @value);
|
||||||
insert into subchild values (default, @id, @value);
|
insert into subchild values (default, @id, @value);
|
||||||
select parent_id from subchild;
|
select parent_id from subchild;
|
||||||
|
@ -54,8 +54,6 @@ drop view vt1_1;
|
|||||||
create or replace table t1( id bigint primary key, a int, b int) with system versioning;
|
create or replace table t1( id bigint primary key, a int, b int) with system versioning;
|
||||||
insert into t1 values(1, 1, 1);
|
insert into t1 values(1, 1, 1);
|
||||||
select row_start, row_end from t1 into @sys_start, @sys_end;
|
select row_start, row_end from t1 into @sys_start, @sys_end;
|
||||||
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 id, a, b from t1;
|
select id, a, b from t1;
|
||||||
id a b
|
id a b
|
||||||
1 1 1
|
1 1 1
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
CREATE TABLE t1 (a INT, b INT, c INT, vc INT AS (c), UNIQUE(a), UNIQUE(b)) WITH SYSTEM VERSIONING;
|
CREATE TABLE t1 (a INT, b INT, c INT, vc INT AS (c), UNIQUE(a), UNIQUE(b)) WITH SYSTEM VERSIONING;
|
||||||
INSERT IGNORE INTO t1 (a,b,c) VALUES (1,2,3);
|
INSERT IGNORE INTO t1 (a,b,c) VALUES (1,2,3);
|
||||||
SELECT a, b, c FROM t1 INTO OUTFILE '15330.data';
|
SELECT a, b, c FROM t1 INTO OUTFILE '15330.data';
|
||||||
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
|
|
||||||
LOAD DATA INFILE '15330.data' IGNORE INTO TABLE t1 (a,b,c);
|
LOAD DATA INFILE '15330.data' IGNORE INTO TABLE t1 (a,b,c);
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1062 Duplicate entry '1' for key 'a'
|
Warning 1062 Duplicate entry '1' for key 'a'
|
||||||
|
@ -178,8 +178,6 @@ x C D
|
|||||||
1 1 1
|
1 1 1
|
||||||
set @str= concat('select row_start from t1 partition (pn) into @ts0');
|
set @str= concat('select row_start from t1 partition (pn) into @ts0');
|
||||||
prepare stmt from @str;
|
prepare stmt from @str;
|
||||||
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
|
|
||||||
execute stmt;
|
execute stmt;
|
||||||
drop prepare stmt;
|
drop prepare stmt;
|
||||||
set @now= now(6);
|
set @now= now(6);
|
||||||
@ -191,8 +189,6 @@ execute select_pn;
|
|||||||
x C D
|
x C D
|
||||||
set @str= concat('select row_start from t1 partition (p0) into @ts1');
|
set @str= concat('select row_start from t1 partition (p0) into @ts1');
|
||||||
prepare stmt from @str;
|
prepare stmt from @str;
|
||||||
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
|
|
||||||
execute stmt;
|
execute stmt;
|
||||||
drop prepare stmt;
|
drop prepare stmt;
|
||||||
select @ts0 = @ts1;
|
select @ts0 = @ts1;
|
||||||
@ -208,8 +204,6 @@ x C D
|
|||||||
2 1 1
|
2 1 1
|
||||||
set @str= concat('select row_start from t1 partition (pn) into @ts0');
|
set @str= concat('select row_start from t1 partition (pn) into @ts0');
|
||||||
prepare stmt from @str;
|
prepare stmt from @str;
|
||||||
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
|
|
||||||
execute stmt;
|
execute stmt;
|
||||||
drop prepare stmt;
|
drop prepare stmt;
|
||||||
set @now= now(6);
|
set @now= now(6);
|
||||||
@ -225,20 +219,14 @@ drop prepare select_p0;
|
|||||||
drop prepare select_pn;
|
drop prepare select_pn;
|
||||||
set @str= concat('select row_start from t1 partition (p0) where x = 2 into @ts1');
|
set @str= concat('select row_start from t1 partition (p0) where x = 2 into @ts1');
|
||||||
prepare stmt from @str;
|
prepare stmt from @str;
|
||||||
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
|
|
||||||
execute stmt;
|
execute stmt;
|
||||||
drop prepare stmt;
|
drop prepare stmt;
|
||||||
set @str= concat('select row_end from t1 partition (p0) where x = 2 into @ts2');
|
set @str= concat('select row_end from t1 partition (p0) where x = 2 into @ts2');
|
||||||
prepare stmt from @str;
|
prepare stmt from @str;
|
||||||
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
|
|
||||||
execute stmt;
|
execute stmt;
|
||||||
drop prepare stmt;
|
drop prepare stmt;
|
||||||
set @str= concat('select row_start from t1 partition (pn) into @ts3');
|
set @str= concat('select row_start from t1 partition (pn) into @ts3');
|
||||||
prepare stmt from @str;
|
prepare stmt from @str;
|
||||||
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
|
|
||||||
execute stmt;
|
execute stmt;
|
||||||
drop prepare stmt;
|
drop prepare stmt;
|
||||||
select @ts0 = @ts1;
|
select @ts0 = @ts1;
|
||||||
@ -821,8 +809,6 @@ create or replace table t2 (f int);
|
|||||||
create or replace trigger tr before insert on t2
|
create or replace trigger tr before insert on t2
|
||||||
for each row select table_rows from information_schema.tables
|
for each row select table_rows from information_schema.tables
|
||||||
where table_name = 't1' into @a;
|
where table_name = 't1' into @a;
|
||||||
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
|
|
||||||
insert into t2 values (1);
|
insert into t2 values (1);
|
||||||
#
|
#
|
||||||
# MDEV-14740 Locking assertion for system_time partitioning
|
# MDEV-14740 Locking assertion for system_time partitioning
|
||||||
@ -832,8 +818,6 @@ partition by system_time interval 1 week;
|
|||||||
create or replace table t2 (f int);
|
create or replace table t2 (f int);
|
||||||
create or replace trigger tr before insert on t2
|
create or replace trigger tr before insert on t2
|
||||||
for each row select count(*) from t1 into @a;
|
for each row select count(*) from t1 into @a;
|
||||||
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
|
|
||||||
insert into t2 values (1);
|
insert into t2 values (1);
|
||||||
#
|
#
|
||||||
# MDEV-14747 ALTER PARTITION BY SYSTEM_TIME after LOCK TABLES
|
# MDEV-14747 ALTER PARTITION BY SYSTEM_TIME after LOCK TABLES
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
--- select.result
|
|
||||||
+++ select.reject
|
|
||||||
@@ -17,6 +17,8 @@
|
|
||||||
(8, 108),
|
|
||||||
(9, 109);
|
|
||||||
set @t0= now(6);
|
|
||||||
+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
|
|
||||||
delete from t1 where x = 3;
|
|
||||||
delete from t1 where x > 7;
|
|
||||||
insert into t1(x, y) values(3, 33);
|
|
||||||
|
@ -23,8 +23,6 @@ delete from t1 where x = 3;
|
|||||||
delete from t1 where x > 7;
|
delete from t1 where x > 7;
|
||||||
insert into t1(x, y) values(3, 33);
|
insert into t1(x, y) values(3, 33);
|
||||||
select sys_trx_start from t1 where x = 3 and y = 33 into @t1;
|
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;
|
select x, y from t1;
|
||||||
x y
|
x y
|
||||||
0 100
|
0 100
|
||||||
@ -382,8 +380,6 @@ insert into t1 values (1);
|
|||||||
set @ts= now(6);
|
set @ts= now(6);
|
||||||
delete from t1;
|
delete from t1;
|
||||||
select sys_trx_start from t1 for system_time all into @trx_start;
|
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
|
## ensure @trx_start is much lower than unix timestamp
|
||||||
select @trx_start < unix_timestamp(@ts) - 100 as trx_start_good;
|
select @trx_start < unix_timestamp(@ts) - 100 as trx_start_good;
|
||||||
trx_start_good
|
trx_start_good
|
||||||
@ -577,11 +573,7 @@ period for system_time (row_start, row_end)
|
|||||||
insert into t1 values (1);
|
insert into t1 values (1);
|
||||||
delete from t1;
|
delete from t1;
|
||||||
select row_start from t1 for system_time all into @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;
|
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;
|
select * from t1 for system_time between @t1 and @t2;
|
||||||
a
|
a
|
||||||
1
|
1
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
--- select2.result
|
--- suite/versioning/r/select2.result 2022-12-12 19:34:34.242342915 +0200
|
||||||
+++ select2,trx_id.reject
|
+++ suite/versioning/r/select2,trx_id.reject 2022-12-12 19:37:18.721907294 +0200
|
||||||
@@ -26,6 +26,8 @@
|
@@ -22,6 +22,8 @@
|
||||||
|
delete from t1 where x > 7;
|
||||||
|
insert into t1(x, y) values(3, 33);
|
||||||
select sys_start from t1 where x = 3 and y = 33 into @t1;
|
select sys_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
|
|
||||||
+set @x1= @t1;
|
+set @x1= @t1;
|
||||||
+select trt_commit_ts(@x1) into @t1;
|
+select trt_commit_ts(@x1) into @t1;
|
||||||
select x, y from t1;
|
select x, y from t1;
|
||||||
x y
|
x y
|
||||||
0 100
|
0 100
|
||||||
@@ -86,7 +88,7 @@
|
@@ -82,7 +84,7 @@
|
||||||
8 108
|
8 108
|
||||||
9 109
|
9 109
|
||||||
3 33
|
3 33
|
||||||
@ -18,7 +18,7 @@
|
|||||||
ASOF2_x y
|
ASOF2_x y
|
||||||
0 100
|
0 100
|
||||||
1 101
|
1 101
|
||||||
@@ -98,7 +100,7 @@
|
@@ -94,7 +96,7 @@
|
||||||
7 107
|
7 107
|
||||||
8 108
|
8 108
|
||||||
9 109
|
9 109
|
||||||
@ -27,7 +27,7 @@
|
|||||||
FROMTO2_x y
|
FROMTO2_x y
|
||||||
0 100
|
0 100
|
||||||
1 101
|
1 101
|
||||||
@@ -110,7 +112,7 @@
|
@@ -106,7 +108,7 @@
|
||||||
7 107
|
7 107
|
||||||
8 108
|
8 108
|
||||||
9 109
|
9 109
|
||||||
|
@ -18,14 +18,10 @@ insert into t1 (x, y) values
|
|||||||
(9, 109);
|
(9, 109);
|
||||||
set @t0= now(6);
|
set @t0= now(6);
|
||||||
select sys_start from t1 limit 1 into @x0;
|
select sys_start from t1 limit 1 into @x0;
|
||||||
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
|
|
||||||
delete from t1 where x = 3;
|
delete from t1 where x = 3;
|
||||||
delete from t1 where x > 7;
|
delete from t1 where x > 7;
|
||||||
insert into t1(x, y) values(3, 33);
|
insert into t1(x, y) values(3, 33);
|
||||||
select sys_start from t1 where x = 3 and y = 33 into @t1;
|
select sys_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;
|
select x, y from t1;
|
||||||
x y
|
x y
|
||||||
0 100
|
0 100
|
||||||
|
@ -25,15 +25,11 @@ add period for system_time(s, e),
|
|||||||
add system versioning,
|
add system versioning,
|
||||||
algorithm=inplace;
|
algorithm=inplace;
|
||||||
select s from t1 into @trx_start;
|
select s from t1 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
|
|
||||||
select count(*) = 1 from mysql.transaction_registry where transaction_id = @trx_start;
|
select count(*) = 1 from mysql.transaction_registry where transaction_id = @trx_start;
|
||||||
count(*) = 1
|
count(*) = 1
|
||||||
1
|
1
|
||||||
create or replace table t1 (x int);
|
create or replace table t1 (x int);
|
||||||
select count(*) from mysql.transaction_registry into @tmp;
|
select count(*) from mysql.transaction_registry into @tmp;
|
||||||
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
|
|
||||||
alter table t1
|
alter table t1
|
||||||
add column s bigint unsigned as row start,
|
add column s bigint unsigned as row start,
|
||||||
add column e bigint unsigned as row end,
|
add column e bigint unsigned as row end,
|
||||||
@ -52,15 +48,11 @@ add period for system_time(s, e),
|
|||||||
add system versioning,
|
add system versioning,
|
||||||
algorithm=copy;
|
algorithm=copy;
|
||||||
select s from t1 into @trx_start;
|
select s from t1 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
|
|
||||||
select count(*) = 1 from mysql.transaction_registry where transaction_id = @trx_start;
|
select count(*) = 1 from mysql.transaction_registry where transaction_id = @trx_start;
|
||||||
count(*) = 1
|
count(*) = 1
|
||||||
1
|
1
|
||||||
create or replace table t1 (x int);
|
create or replace table t1 (x int);
|
||||||
select count(*) from mysql.transaction_registry into @tmp;
|
select count(*) from mysql.transaction_registry into @tmp;
|
||||||
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
|
|
||||||
alter table t1
|
alter table t1
|
||||||
add column s bigint unsigned as row start,
|
add column s bigint unsigned as row start,
|
||||||
add column e bigint unsigned as row end,
|
add column e bigint unsigned as row end,
|
||||||
@ -113,14 +105,8 @@ set @ts2= sysdate(6);
|
|||||||
commit;
|
commit;
|
||||||
set @ts3= sysdate(6);
|
set @ts3= sysdate(6);
|
||||||
select sys_start from t1 where x = 1 into @trx_id1;
|
select sys_start from t1 where x = 1 into @trx_id1;
|
||||||
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 sys_start from t1 where x = 2 into @trx_id2;
|
select sys_start from t1 where x = 2 into @trx_id2;
|
||||||
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 sys_start from t1 where x = 3 into @trx_id3;
|
select sys_start from t1 where x = 3 into @trx_id3;
|
||||||
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 @trx_id1 < @trx_id2, @trx_id2 < @trx_id3;
|
select @trx_id1 < @trx_id2, @trx_id2 < @trx_id3;
|
||||||
@trx_id1 < @trx_id2 @trx_id2 < @trx_id3
|
@trx_id1 < @trx_id2 @trx_id2 < @trx_id3
|
||||||
1 1
|
1 1
|
||||||
@ -278,8 +264,6 @@ set @ts1= now(6);
|
|||||||
insert into t1 values (1);
|
insert into t1 values (1);
|
||||||
commit;
|
commit;
|
||||||
select row_start from t1 into @trx_id;
|
select row_start from t1 into @trx_id;
|
||||||
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 trt_begin_ts(@trx_id) <= @ts1 as BEGIN_TS_GOOD;
|
select trt_begin_ts(@trx_id) <= @ts1 as BEGIN_TS_GOOD;
|
||||||
BEGIN_TS_GOOD
|
BEGIN_TS_GOOD
|
||||||
1
|
1
|
||||||
|
@ -7412,12 +7412,15 @@ SHOW_VAR status_vars[]= {
|
|||||||
{"Feature_dynamic_columns", (char*) offsetof(STATUS_VAR, feature_dynamic_columns), SHOW_LONG_STATUS},
|
{"Feature_dynamic_columns", (char*) offsetof(STATUS_VAR, feature_dynamic_columns), SHOW_LONG_STATUS},
|
||||||
{"Feature_fulltext", (char*) offsetof(STATUS_VAR, feature_fulltext), SHOW_LONG_STATUS},
|
{"Feature_fulltext", (char*) offsetof(STATUS_VAR, feature_fulltext), SHOW_LONG_STATUS},
|
||||||
{"Feature_gis", (char*) offsetof(STATUS_VAR, feature_gis), SHOW_LONG_STATUS},
|
{"Feature_gis", (char*) offsetof(STATUS_VAR, feature_gis), SHOW_LONG_STATUS},
|
||||||
{"Feature_insert_returning", (char*)offsetof(STATUS_VAR, feature_insert_returning), SHOW_LONG_STATUS},
|
{"Feature_insert_returning", (char*)offsetof(STATUS_VAR, feature_insert_returning), SHOW_LONG_STATUS},
|
||||||
{"Feature_invisible_columns", (char*) offsetof(STATUS_VAR, feature_invisible_columns), SHOW_LONG_STATUS},
|
{"Feature_into_old_syntax", (char*) offsetof(STATUS_VAR, feature_into_old_syntax), SHOW_LONG_STATUS},
|
||||||
|
{"Feature_into_outfile", (char*) offsetof(STATUS_VAR, feature_into_outfile), SHOW_LONG_STATUS},
|
||||||
|
{"Feature_into_variable", (char*) offsetof(STATUS_VAR, feature_into_variable), SHOW_LONG_STATUS},
|
||||||
|
{"Feature_invisible_columns",(char*) offsetof(STATUS_VAR, feature_invisible_columns), SHOW_LONG_STATUS},
|
||||||
{"Feature_json", (char*) offsetof(STATUS_VAR, feature_json), SHOW_LONG_STATUS},
|
{"Feature_json", (char*) offsetof(STATUS_VAR, feature_json), SHOW_LONG_STATUS},
|
||||||
{"Feature_locale", (char*) offsetof(STATUS_VAR, feature_locale), SHOW_LONG_STATUS},
|
{"Feature_locale", (char*) offsetof(STATUS_VAR, feature_locale), SHOW_LONG_STATUS},
|
||||||
{"Feature_subquery", (char*) offsetof(STATUS_VAR, feature_subquery), SHOW_LONG_STATUS},
|
{"Feature_subquery", (char*) offsetof(STATUS_VAR, feature_subquery), SHOW_LONG_STATUS},
|
||||||
{"Feature_system_versioning", (char*) offsetof(STATUS_VAR, feature_system_versioning), SHOW_LONG_STATUS},
|
{"Feature_system_versioning",(char*) offsetof(STATUS_VAR, feature_system_versioning), SHOW_LONG_STATUS},
|
||||||
{"Feature_application_time_periods", (char*) offsetof(STATUS_VAR, feature_application_time_periods), SHOW_LONG_STATUS},
|
{"Feature_application_time_periods", (char*) offsetof(STATUS_VAR, feature_application_time_periods), SHOW_LONG_STATUS},
|
||||||
{"Feature_timezone", (char*) offsetof(STATUS_VAR, feature_timezone), SHOW_LONG_STATUS},
|
{"Feature_timezone", (char*) offsetof(STATUS_VAR, feature_timezone), SHOW_LONG_STATUS},
|
||||||
{"Feature_trigger", (char*) offsetof(STATUS_VAR, feature_trigger), SHOW_LONG_STATUS},
|
{"Feature_trigger", (char*) offsetof(STATUS_VAR, feature_trigger), SHOW_LONG_STATUS},
|
||||||
|
@ -953,19 +953,22 @@ typedef struct system_status_var
|
|||||||
functions are used */
|
functions are used */
|
||||||
ulong feature_dynamic_columns; /* +1 when creating a dynamic column */
|
ulong feature_dynamic_columns; /* +1 when creating a dynamic column */
|
||||||
ulong feature_fulltext; /* +1 when MATCH is used */
|
ulong feature_fulltext; /* +1 when MATCH is used */
|
||||||
ulong feature_gis; /* +1 opening a table with GIS features */
|
ulong feature_gis; /* +1 opening table with GIS features */
|
||||||
ulong feature_invisible_columns; /* +1 opening a table with invisible column */
|
ulong feature_invisible_columns; /* +1 opening table with invisible column */
|
||||||
ulong feature_json; /* +1 when JSON function appears in the statement */
|
ulong feature_json; /* +1 when JSON function is used */
|
||||||
ulong feature_locale; /* +1 when LOCALE is set */
|
ulong feature_locale; /* +1 when LOCALE is set */
|
||||||
ulong feature_subquery; /* +1 when subqueries are used */
|
ulong feature_subquery; /* +1 when subqueries are used */
|
||||||
ulong feature_system_versioning; /* +1 opening a table WITH SYSTEM VERSIONING */
|
ulong feature_system_versioning; /* +1 opening table WITH SYSTEM VERSIONING */
|
||||||
ulong feature_application_time_periods;
|
ulong feature_application_time_periods;
|
||||||
/* +1 opening a table with application-time period */
|
/* +1 opening a table with application-time period */
|
||||||
ulong feature_insert_returning; /* +1 when INSERT...RETURNING is used */
|
ulong feature_insert_returning; /* +1 when INSERT...RETURNING is used */
|
||||||
ulong feature_timezone; /* +1 when XPATH is used */
|
ulong feature_timezone; /* +1 when XPATH is used */
|
||||||
ulong feature_trigger; /* +1 opening a table with triggers */
|
ulong feature_trigger; /* +1 opening a table with triggers */
|
||||||
ulong feature_xml; /* +1 when XPATH is used */
|
ulong feature_xml; /* +1 when XPATH is used */
|
||||||
ulong feature_window_functions; /* +1 when window functions are used */
|
ulong feature_window_functions; /* +1 when window functions are used */
|
||||||
|
ulong feature_into_outfile; /* +1 when INTO OUTFILE is used */
|
||||||
|
ulong feature_into_variable; /* +1 when INTO VARIABLE is used */
|
||||||
|
ulong feature_into_old_syntax; /* +1 when INTO is used with old syntax*/
|
||||||
|
|
||||||
/* From MASTER_GTID_WAIT usage */
|
/* From MASTER_GTID_WAIT usage */
|
||||||
ulong master_gtid_wait_timeouts; /* Number of timeouts */
|
ulong master_gtid_wait_timeouts; /* Number of timeouts */
|
||||||
|
@ -12502,13 +12502,8 @@ opt_procedure_or_into:
|
|||||||
}
|
}
|
||||||
| into opt_select_lock_type
|
| into opt_select_lock_type
|
||||||
{
|
{
|
||||||
push_warning_printf(thd, Sql_condition::WARN_LEVEL_WARN,
|
|
||||||
ER_WARN_DEPRECATED_SYNTAX,
|
|
||||||
ER_THD(thd, ER_WARN_DEPRECATED_SYNTAX),
|
|
||||||
"<select expression> INTO <destination>;",
|
|
||||||
"'SELECT <select list> INTO <destination>"
|
|
||||||
" FROM...'");
|
|
||||||
$$= $2;
|
$$= $2;
|
||||||
|
status_var_increment(thd->status_var.feature_into_old_syntax);
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
@ -12731,6 +12726,7 @@ into_destination:
|
|||||||
new (thd->mem_root)
|
new (thd->mem_root)
|
||||||
select_export(thd, lex->exchange))))
|
select_export(thd, lex->exchange))))
|
||||||
MYSQL_YYABORT;
|
MYSQL_YYABORT;
|
||||||
|
status_var_increment(thd->status_var.feature_into_outfile);
|
||||||
}
|
}
|
||||||
opt_load_data_charset
|
opt_load_data_charset
|
||||||
{ Lex->exchange->cs= $4; }
|
{ Lex->exchange->cs= $4; }
|
||||||
@ -12753,6 +12749,7 @@ into_destination:
|
|||||||
| select_var_list_init
|
| select_var_list_init
|
||||||
{
|
{
|
||||||
Lex->uncacheable(UNCACHEABLE_SIDEEFFECT);
|
Lex->uncacheable(UNCACHEABLE_SIDEEFFECT);
|
||||||
|
status_var_increment(thd->status_var.feature_into_variable);
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -92,7 +92,5 @@ disconnect con2;
|
|||||||
disconnect con1;
|
disconnect con1;
|
||||||
disconnect con0;
|
disconnect con0;
|
||||||
SELECT * FROM t1 ORDER BY pk INTO OUTFILE <output_file>;
|
SELECT * FROM t1 ORDER BY pk INTO OUTFILE <output_file>;
|
||||||
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
|
|
||||||
All pk values matched their expected values
|
All pk values matched their expected values
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
@ -20,8 +20,6 @@ END IF;
|
|||||||
SET id1_cond = id1_cond + 1;
|
SET id1_cond = id1_cond + 1;
|
||||||
END WHILE;
|
END WHILE;
|
||||||
END//
|
END//
|
||||||
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
|
|
||||||
"Skipping bloom filter"
|
"Skipping bloom filter"
|
||||||
SET session rocksdb_skip_bloom_filter_on_read=1;
|
SET session rocksdb_skip_bloom_filter_on_read=1;
|
||||||
CALL select_test();
|
CALL select_test();
|
||||||
|
@ -1,123 +1,63 @@
|
|||||||
Warnings:
|
Warnings:
|
||||||
Note 1051 Unknown table 'test.ti_nk'
|
Note 1051 Unknown table 'test.ti_nk'
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
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
|
|
||||||
skip_merge_sort
|
skip_merge_sort
|
||||||
true
|
true
|
||||||
DROP TABLE ti_nk;
|
DROP TABLE ti_nk;
|
||||||
|
@ -115,8 +115,6 @@ SELECT t1.a, t2.b FROM t2, t1 WHERE t1.a = t2.a ORDER BY t2.b, t1.a
|
|||||||
INTO OUTFILE '<DATADIR>/select.out'
|
INTO OUTFILE '<DATADIR>/select.out'
|
||||||
CHARACTER SET utf8
|
CHARACTER SET utf8
|
||||||
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '''';
|
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '''';
|
||||||
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
|
|
||||||
200,'bar'
|
200,'bar'
|
||||||
200,'bar'
|
200,'bar'
|
||||||
100,'foobar'
|
100,'foobar'
|
||||||
@ -128,12 +126,8 @@ INTO DUMPFILE '<DATADIR>/select.dump';
|
|||||||
ERROR 42000: Result consisted of more than one row
|
ERROR 42000: Result consisted of more than one row
|
||||||
SELECT t1.*, t2.* FROM t1, t2 ORDER BY t2.b, t1.a, t2.a, t1.b, t1.pk, t2.pk LIMIT 1
|
SELECT t1.*, t2.* FROM t1, t2 ORDER BY t2.b, t1.a, t2.a, t1.b, t1.pk, t2.pk LIMIT 1
|
||||||
INTO DUMPFILE '<DATADIR>/select.dump';
|
INTO DUMPFILE '<DATADIR>/select.dump';
|
||||||
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
|
|
||||||
1z2200bar3
|
1z2200bar3
|
||||||
SELECT MIN(a), MAX(a) FROM t1 INTO @min, @max;
|
SELECT MIN(a), MAX(a) FROM t1 INTO @min, @max;
|
||||||
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 @min, @max;
|
SELECT @min, @max;
|
||||||
@min @max
|
@min @max
|
||||||
1 200
|
1 200
|
||||||
|
Reference in New Issue
Block a user