mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
bug#4816. index search for NULL in blob
This commit is contained in:
@ -453,3 +453,12 @@ table type possible_keys key key_len ref rows Extra
|
||||
t1 system NULL NULL NULL NULL 1 Using temporary
|
||||
t2 index NULL PRIMARY 4 NULL 2 Using index; Distinct
|
||||
drop table t1,t2;
|
||||
create table t1 ( a tinytext, b char(1), index idx (a(1),b) );
|
||||
insert into t1 values (null,''), (null,'');
|
||||
explain select count(*) from t1 where a is null;
|
||||
table type possible_keys key key_len ref rows Extra
|
||||
t1 ref idx idx 4 const 1 Using where
|
||||
select count(*) from t1 where a is null;
|
||||
count(*)
|
||||
2
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user