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:
@ -210,6 +210,7 @@ drop table t1;
|
||||
# (and thus for values returned by mysql_affected_rows())
|
||||
# for various forms of INSERT
|
||||
#
|
||||
--disable_ps2_protocol
|
||||
create table t1 (id int primary key, data int);
|
||||
insert into t1 values (1, 1), (2, 2), (3, 3);
|
||||
select row_count();
|
||||
@ -227,6 +228,7 @@ select row_count();
|
||||
insert into t1 values (5, 5) on duplicate key update data= data + 10;
|
||||
select row_count();
|
||||
drop table t1;
|
||||
--enable_ps2_protocol
|
||||
|
||||
#
|
||||
# Bug#25123: ON DUPLICATE KEY clause allows fields not from the insert table
|
||||
@ -284,8 +286,10 @@ BEGIN
|
||||
END |
|
||||
delimiter ;|
|
||||
|
||||
--disable_ps2_protocol
|
||||
SELECT f1();
|
||||
SELECT f2();
|
||||
--enable_ps2_protocol
|
||||
INSERT INTO t1 VALUES (3);
|
||||
INSERT DELAYED INTO t1 VALUES (4);
|
||||
|
||||
@ -592,7 +596,9 @@ CREATE ALGORITHM = MERGE VIEW v1 AS SELECT f1, f2 FROM t1 WHERE f1 = cast('' as
|
||||
REPLACE INTO v1 SET f2 = 1;
|
||||
SELECT * from t1;
|
||||
drop view v1;
|
||||
--disable_ps2_protocol
|
||||
SELECT 0,0 INTO OUTFILE 't1.txt';
|
||||
--enable_ps2_protocol
|
||||
CREATE ALGORITHM = MERGE VIEW v1 AS SELECT f1, f2 FROM t1 WHERE f1 = 'x' WITH CHECK OPTION;
|
||||
--error ER_TRUNCATED_WRONG_VALUE
|
||||
LOAD DATA INFILE 't1.txt' INTO TABLE v1;
|
||||
|
Reference in New Issue
Block a user