mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-31003: Second execution for ps-protocol
This patch adds for "--ps-protocol" second execution of queries "SELECT". Also in this patch it is added ability to disable/enable (--disable_ps2_protocol/--enable_ps2_protocol) second execution for "--ps-prototocol" in testcases.
This commit is contained in:
@@ -12,7 +12,9 @@ insert into t1 () values
|
||||
(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),
|
||||
(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),
|
||||
(),(),(),();
|
||||
--disable_ps2_protocol
|
||||
select * into outfile 'load.data' from t1;
|
||||
--enable_ps2_protocol
|
||||
create temporary table tmp (a varchar(1024), b int, c int, d int, e linestring, unique (e));
|
||||
load data infile 'load.data' into table tmp;
|
||||
delete from tmp;
|
||||
@@ -223,7 +225,9 @@ drop table t1;
|
||||
--echo #
|
||||
CREATE TABLE t1 (data VARCHAR(4), unique(data) using hash) with system versioning;
|
||||
INSERT INTO t1 VALUES ('A');
|
||||
--disable_ps2_protocol
|
||||
SELECT * INTO OUTFILE 'load.data' from t1;
|
||||
--enable_ps2_protocol
|
||||
--error ER_DUP_ENTRY
|
||||
LOAD DATA INFILE 'load.data' INTO TABLE t1;
|
||||
select * from t1;
|
||||
@@ -237,7 +241,9 @@ DROP TABLE t1;
|
||||
CREATE TABLE t1 (data VARCHAR(7961)) ENGINE=InnoDB;
|
||||
|
||||
INSERT INTO t1 VALUES ('f'), ('o'), ('o');
|
||||
--disable_ps2_protocol
|
||||
SELECT * INTO OUTFILE 'load.data' from t1;
|
||||
--enable_ps2_protocol
|
||||
|
||||
ALTER IGNORE TABLE t1 ADD UNIQUE INDEX (data);
|
||||
SELECT * FROM t1;
|
||||
|
Reference in New Issue
Block a user