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:
@ -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;
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Reference in New Issue
Block a user