Commit 3d8b5e0b authored by Lena Startseva's avatar Lena Startseva

MDEV-31005: Make working cursor-protocol

Updated tests: cases with bugs or which cannot be run
with the cursor-protocol were excluded with
"--disable_cursor_protocol"/"--enable_cursor_protocol"

Fix for v.11.1
parent e875b2e5
......@@ -156,12 +156,14 @@ show status like "feature_insert_returning";
--echo #
create table t1(id1 int);
insert into t1 values (1),(2);
--disable_cursor_protocol
--disable_ps2_protocol
select * into outfile '../../tmp/features_outfile.1' from t1;
select * from t1 into outfile '../../tmp/features_outfile.2';
--enable_ps2_protocol
select id1 INTO @x from t1 where id1=1;
select * from t1 where id1=1 into @y;
--enable_cursor_protocol
select * from t1 where id1=@x;
select @x=@y;
drop table t1;
......
......@@ -983,6 +983,7 @@ EXPLAIN SELECT a, MAX(b) FROM t2 WHERE a IN (10,100) GROUP BY a;
# view protocol will cause changed table counters
--disable_view_protocol
--disable_cursor_protocol
--disable_ps2_protocol
FLUSH status;
SELECT a, MAX(b) FROM t1_part WHERE a IN (10, 100) GROUP BY a;
......@@ -992,7 +993,7 @@ FLUSH status;
SELECT a, MAX(b) FROM t2 WHERE a IN (10, 100) GROUP BY a;
SHOW status LIKE 'handler_read%';
--enable_ps2_protocol
--enable_cursor_protocol
--enable_view_protocol
insert into t2 select 100,seq from seq_1_to_100;
EXPLAIN SELECT a, MAX(b) FROM t2 WHERE a IN (10,100) GROUP BY a;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment