Commit dba846ce authored by Sergei Petrunia's avatar Sergei Petrunia

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

Adjust the testcase for MariaDB 10.3+ : prevent IN-to-subquery conversion
optimization from working.
parent 212d92ad
......@@ -3056,7 +3056,7 @@ set @tmp_24117= @@max_session_mem_used;
# - 2.8M without the bug
# - 1G with the bug.
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;
# This should not fail with an error:
execute s;
......
......@@ -2102,7 +2102,7 @@ set @tmp_24117= @@max_session_mem_used;
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;
......
......@@ -3068,7 +3068,7 @@ set @tmp_24117= @@max_session_mem_used;
# - 2.8M without the bug
# - 1G with the bug.
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;
# This should not fail with an error:
execute s;
......
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