mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +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:
@@ -6,8 +6,6 @@ create database mysqltest1;
|
||||
create table mysqltest1.t1 (n int);
|
||||
insert into mysqltest1.t1 values (1);
|
||||
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.t3 (n int);
|
||||
drop database mysqltest1;
|
||||
|
@@ -51,10 +51,6 @@ DELETE FROM test.regular_tbl WHERE id = del_count;
|
||||
SET del_count = del_count - 2;
|
||||
END WHILE;
|
||||
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()
|
||||
BEGIN
|
||||
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;
|
||||
END WHILE;
|
||||
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()
|
||||
BEGIN
|
||||
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;
|
||||
END WHILE;
|
||||
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;
|
||||
CALL test.proc_norm();
|
||||
commit;
|
||||
|
@@ -26,10 +26,6 @@ DELETE FROM test.regular_tbl WHERE id = del_count;
|
||||
SET del_count = del_count - 2;
|
||||
END WHILE;
|
||||
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();
|
||||
connection slave;
|
||||
connection master;
|
||||
|
@@ -259,8 +259,6 @@ connection server_2;
|
||||
*** Restart the slave server to prove 'gtid_slave_pos_innodb' autodiscovery ***
|
||||
connection server_2;
|
||||
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;
|
||||
INSERT INTO t2(a) SELECT 1+MAX(a) FROM t2;
|
||||
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());
|
||||
connection slave;
|
||||
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;
|
||||
create temporary table t1_slave select * from t1 where 1=0;
|
||||
load data infile '../../tmp/t1_slave.txt' into table t1_slave;
|
||||
|
Reference in New Issue
Block a user