Commit 1e7a6607 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.2
parent 985ac415
......@@ -66,11 +66,13 @@ set debug_sync= 'now SIGNAL end';
--connection con2
commit;
--connection default
--disable_cursor_protocol
--disable_view_protocol
select variable_value into @otd from information_schema.session_status where variable_name='Opened_table_definitions';
select * from t1;
select variable_value-@otd from information_schema.session_status where variable_name='Opened_table_definitions';
--enable_view_protocol
--enable_cursor_protocol
--echo # long transaction and add column
create or replace table t1 (a int);
......
......@@ -3908,10 +3908,13 @@ FROM JSON_TABLE(
SELECT JSON_KEY_VALUE('{}', '$.key1');
#enable after fix MDEV-31554
--disable_cursor_protocol
#enable after MDEV-32454 fix
--disable_view_protocol
SELECT JSON_KEY_VALUE('{"key1":"val1", "key2":"val2"}', '$') as exp;
--enable_view_protocol
--enable_cursor_protocol
SELECT jt.*
FROM JSON_TABLE(
JSON_KEY_VALUE('{"key1":"val1", "key2":"val2"}', '$'), '$[*]'
......@@ -4111,7 +4114,10 @@ CREATE TABLE t1 (
INSERT INTO t1 VALUES('[1,2,3]', '[2, 3, 4]'), ('[2 ,3, 4]', '[4, 5, 6]');
#check after fix MDEV-31554
--disable_cursor_protocol
SELECT JSON_ARRAY_INTERSECT(c1, c2) FROM t1;
--enable_cursor_protocol
DROP TABLE t1;
......
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