mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
e5bc21af37
skip NULL VARCHAR key parts like it's done elsewhere
6 lines
247 B
Text
6 lines
247 B
Text
create table t1 (f1 varchar(128), f2 varchar(128), key (f2,f1) using btree) engine=memory;
|
|
insert into t1 values (null,'not'),('one',null),('two',null),('three','');
|
|
select * from t1 where f1 = 'one' and f2 is null;
|
|
f1 f2
|
|
one NULL
|
|
drop table t1;
|