1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

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.10.5
This commit is contained in:
Lena Startseva
2024-05-23 08:54:14 +07:00
parent ab569524dc
commit 0a5e4a0191
366 changed files with 1799 additions and 30 deletions

View File

@ -65,7 +65,10 @@ set @test_int=null,@test_double=null,@test_string=null,@test_string2=null;
select @test_int,@test_double,@test_string,@test_string2;
select @t1:=(@t2:=1)+@t3:=4,@t1,@t2,@t3;
explain extended select @t1:=(@t2:=1)+@t3:=4,@t1,@t2,@t3;
#Enable after fix MDEV-31495
--disable_cursor_protocol
select @t5;
--enable_cursor_protocol
#
# Test problem with WHERE and variables
@ -372,7 +375,9 @@ select @@key_buffer_size;
select * from t1 where a=2;
select * from t2 where a=3;
check table t1,t2;
--disable_cursor_protocol
select max(a) +1, max(a) +2 into @xx,@yy from t1;
--enable_cursor_protocol
drop table t1,t2;
#
@ -594,7 +599,9 @@ set global sql_mode=repeat('a',80);
#
create table t1 (a int);
--disable_cursor_protocol
select a into @x from t1;
--enable_cursor_protocol
show warnings;
drop table t1;
@ -1129,7 +1136,9 @@ SET @@global.thread_stack= 7;
# Bug #40657 - assertion with out of range variables and traditional sql_mode
#
--disable_cursor_protocol
SELECT @@global.expire_logs_days INTO @old_eld;
--enable_cursor_protocol
SET GLOBAL expire_logs_days = -1;
--echo needs to've been adjusted (0)
@ -1165,10 +1174,12 @@ SET GLOBAL auto_increment_offset=0;
#
# Bug#41030 Wrong meta data (incorrect fieldlen)
#
#Check after fix MDEV-31540
--disable_cursor_protocol
--enable_metadata
select @@default_storage_engine;
--disable_metadata
--enable_cursor_protocol
#
# Bug#36540: CREATE EVENT and ALTER EVENT statements fail with large server_id