mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +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;
|
||||
|
||||
|
Reference in New Issue
Block a user