1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +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:
Lena Startseva
2023-05-31 11:57:45 +07:00
parent 23dae6173c
commit 9854fb6fa7
400 changed files with 1339 additions and 42 deletions

View File

@ -1645,6 +1645,7 @@ insert into t2 values (3,1, 'qwerty'),(3,4, 'qwerty');
insert into t2 values (4,1, 'qwerty'),(4,2, 'qwerty'),(4,3, 'qwerty'),
(4,4, 'qwerty');
--disable_ps2_protocol
flush status;
set join_cache_level=5;
select t2.f1, t2.f2, t2.f3 from t1,t2
@ -1678,6 +1679,8 @@ explain select t2.f1, t2.f2, t2.f3 from t1,t2
where t1.f1=t2.f1 and t2.f2 between t1.f1 and t2.f2;
show status like "Handler_icp%";
--enable_ps2_protocol
drop table t1,t2;
set join_cache_level=@save_join_cache_level;
@ -4029,6 +4032,8 @@ insert into t1 values (1), (2);
insert into t2 values (1), (2);
insert into t3 values (2);
--disable_ps2_protocol
explain
select count(*) from t1 straight_join t2
where c1 = c2-0 and c2 <= (select max(c3) from t3 where c3 = 2 and @counter:=@counter+1);
@ -4055,6 +4060,8 @@ where c1 = c2-0 and
select @counter;
--enable_ps2_protocol
drop table t1,t2,t3;
set expensive_subquery_limit=@save_expensive_subquery_limit;