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:
@ -19,7 +19,9 @@ create table t1 (sal int(10),id int(10));
|
||||
INSERT INTO t1 (sal,id) VALUES (5000,1);
|
||||
INSERT INTO t1 (sal,id) VALUES (2000,1);
|
||||
INSERT INTO t1 (sal,id) VALUES (1000,1);
|
||||
--disable_ps2_protocol
|
||||
select f1(sal) from t1 where id>= 1;
|
||||
--enable_ps2_protocol
|
||||
select * from t2;
|
||||
drop table t2;
|
||||
drop function f1;
|
||||
@ -96,9 +98,12 @@ end|
|
||||
|
||||
delimiter ;|
|
||||
|
||||
#Check after fix MDEV-31281
|
||||
--disable_ps2_protocol
|
||||
select f1(10);
|
||||
select f1(sal) from t1;
|
||||
select f1(sal) from t1 where 1=0;
|
||||
--enable_ps2_protocol
|
||||
drop function f1;
|
||||
delimiter |;
|
||||
|
||||
|
Reference in New Issue
Block a user