1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-24117: Memory management problem (in range optimizer)

Adjust the testcase for MariaDB 10.3+ : prevent IN-to-subquery conversion
optimization from working.
This commit is contained in:
Sergei Petrunia
2020-11-10 12:29:20 +03:00
parent 212d92ad26
commit dba846ce2a
3 changed files with 3 additions and 3 deletions

View File

@ -3056,7 +3056,7 @@ set @tmp_24117= @@max_session_mem_used;
# - 2.8M without the bug # - 2.8M without the bug
# - 1G with the bug. # - 1G with the bug.
set max_session_mem_used=64*1024*1024; set max_session_mem_used=64*1024*1024;
set @query=concat('explain select * from t2 where a in (', @query, ')'); set @query=concat('explain select * from t2 where a=1 or a in (', @query, ')');
prepare s from @query; prepare s from @query;
# This should not fail with an error: # This should not fail with an error:
execute s; execute s;

View File

@ -2102,7 +2102,7 @@ set @tmp_24117= @@max_session_mem_used;
set max_session_mem_used=64*1024*1024; set max_session_mem_used=64*1024*1024;
set @query=concat('explain select * from t2 where a in (', @query, ')'); set @query=concat('explain select * from t2 where a=1 or a in (', @query, ')');
prepare s from @query; prepare s from @query;

View File

@ -3068,7 +3068,7 @@ set @tmp_24117= @@max_session_mem_used;
# - 2.8M without the bug # - 2.8M without the bug
# - 1G with the bug. # - 1G with the bug.
set max_session_mem_used=64*1024*1024; set max_session_mem_used=64*1024*1024;
set @query=concat('explain select * from t2 where a in (', @query, ')'); set @query=concat('explain select * from t2 where a=1 or a in (', @query, ')');
prepare s from @query; prepare s from @query;
# This should not fail with an error: # This should not fail with an error:
execute s; execute s;