mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
join_outer.result, null.result, null.test, item_cmpfunc.h:
Fixed inconsistency of values of used_tables_cache and const_item_cache for Item_func_isnull objects (bug #1990). sql/item_cmpfunc.h: Fixed inconsistency of values of used_tables_cache and const_item_cache for Item_func_isnull objects (bug #1990). mysql-test/t/null.test: Fixed inconsistency of values of used_tables_cache and const_item_cache for Item_func_isnull objects (bug #1990). mysql-test/r/null.result: Fixed inconsistency of values of used_tables_cache and const_item_cache for Item_func_isnull objects (bug #1990). mysql-test/r/join_outer.result: Fixed inconsistency of values of used_tables_cache and const_item_cache for Item_func_isnull objects (bug #1990).
This commit is contained in:
parent
91de6fdbce
commit
17119e6de3
4 changed files with 24 additions and 1 deletions
|
|
@ -86,3 +86,14 @@ INSERT INTO t1 (d) values (null),(null);
|
|||
select * from t1;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# Test to check elimination of IS NULL predicate for a non-nullable attribute
|
||||
# (bug #1990)
|
||||
#
|
||||
create table t1 (a int not null, b int not null, index idx(a));
|
||||
insert into t1 values
|
||||
(1,1), (2,2), (3,3), (4,4), (5,5), (6,6),
|
||||
(7,7), (8,8), (9,9), (10,10), (11,11), (12,12);
|
||||
explain select * from t1 where a between 2 and 3;
|
||||
explain select * from t1 where a between 2 and 3 or b is null;
|
||||
drop table t1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue