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:
@ -1016,6 +1016,7 @@ drop table t1;
|
||||
--echo # MDEV-9848: Window functions: reuse sorting and/or scanning
|
||||
--echo #
|
||||
|
||||
--disable_ps2_protocol
|
||||
create table t1 (a int, b int, c int);
|
||||
insert into t1 values
|
||||
(1,3,1),
|
||||
@ -1065,6 +1066,7 @@ select
|
||||
from t1;
|
||||
|
||||
drop table t1;
|
||||
--enable_ps2_protocol
|
||||
|
||||
|
||||
--echo #
|
||||
@ -2549,7 +2551,8 @@ drop table t1;
|
||||
--echo #
|
||||
--echo # MDEV-25630: Crash with window function in left expr of IN subquery
|
||||
--echo #
|
||||
|
||||
#Enable after fix MDEV-31281
|
||||
--disable_ps2_protocol
|
||||
CREATE TABLE t1 (i int);
|
||||
INSERT INTO t1 VALUES (1),(2),(3);
|
||||
SELECT lag(i) over (ORDER BY i) IN ( SELECT 1 FROM t1 a) FROM t1;
|
||||
@ -2559,6 +2562,7 @@ CREATE TABLE t1 (i int);
|
||||
INSERT INTO t1 VALUES (1),(2),(3);
|
||||
SELECT sum(i) over () IN ( SELECT 1 FROM t1 a) FROM t1;
|
||||
DROP TABLE t1;
|
||||
--enable_ps2_protocol
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-25565: 2-nd call of SP with SELECT from view / derived table / CTE
|
||||
|
Reference in New Issue
Block a user