mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +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:
@ -396,15 +396,21 @@ INSERT INTO t2 VALUES (1,'against'),(2,'q');
|
||||
|
||||
SET SQL_MODE= '';
|
||||
SET timestamp = 2;
|
||||
--disable_ps2_protocol
|
||||
SELECT * INTO OUTFILE 't1.data' FROM t1;
|
||||
--enable_ps2_protocol
|
||||
SET timestamp = 3;
|
||||
UPDATE t1 SET f13 = 'q';
|
||||
SET timestamp = 4;
|
||||
LOAD DATA INFILE 't1.data' REPLACE INTO TABLE t1;
|
||||
--disable_ps2_protocol
|
||||
SELECT * INTO OUTFILE 't1.data.2' FROM t1;
|
||||
--enable_ps2_protocol
|
||||
SET timestamp = 5;
|
||||
LOAD DATA INFILE 't1.data.2' REPLACE INTO TABLE t1;
|
||||
--disable_ps2_protocol
|
||||
SELECT * INTO OUTFILE 't2.data' FROM t2;
|
||||
--enable_ps2_protocol
|
||||
SET timestamp = 6;
|
||||
LOAD DATA INFILE 't2.data' REPLACE INTO TABLE t2;
|
||||
SET FOREIGN_KEY_CHECKS = OFF;
|
||||
@ -547,7 +553,9 @@ delete from t0;
|
||||
--error ER_ROW_IS_REFERENCED_2
|
||||
replace t0 values (1);
|
||||
|
||||
--disable_ps2_protocol
|
||||
select * into outfile 'load_t0' from t0 ;
|
||||
--enable_ps2_protocol
|
||||
--error ER_ROW_IS_REFERENCED_2
|
||||
load data infile 'load_t0' replace into table t0;
|
||||
|
||||
|
@ -4,7 +4,9 @@
|
||||
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);
|
||||
|
||||
--disable_ps2_protocol
|
||||
SELECT a, b, c FROM t1 INTO OUTFILE '15330.data';
|
||||
--enable_ps2_protocol
|
||||
LOAD DATA INFILE '15330.data' IGNORE INTO TABLE t1 (a,b,c);
|
||||
LOAD DATA INFILE '15330.data' REPLACE INTO TABLE t1 (a,b,c);
|
||||
|
||||
|
@ -699,7 +699,9 @@ create or replace table t1 (
|
||||
|
||||
insert into t1 () values (),(),(),(),(),(),(),(),(),(),(),(),(),(),(),();
|
||||
|
||||
--disable_ps2_protocol
|
||||
select * into outfile 'load.data' from t1;
|
||||
--enable_ps2_protocol
|
||||
load data infile 'load.data' replace into table t1;
|
||||
--error ER_RECORD_FILE_FULL
|
||||
load data infile 'load.data' replace into table t1;
|
||||
@ -1041,7 +1043,9 @@ partition by system_time limit 100 (
|
||||
partition pn current);
|
||||
|
||||
insert into t1 select seq from seq_0_to_49;
|
||||
--disable_ps2_protocol
|
||||
select x into outfile 'MDEV-20077.data' from t1;
|
||||
--enable_ps2_protocol
|
||||
|
||||
load data infile 'MDEV-20077.data' replace into table t1 (x);
|
||||
load data infile 'MDEV-20077.data' replace into table t1 (x);
|
||||
|
Reference in New Issue
Block a user