
|
If you were logged in you would be able to see more operations.
|
|
|
| Planning Status: |
Unspecified
|
|
Problem happens only with the NULL constant. An expression resulting in NULL works.
create table t (a varchar(5));
create index t_a on t (a);
select * from t where a is null;
PLAN (T INDEX (T_A))
select * from t where a is not distinct from null;
PLAN (T NATURAL)
select * from t where a is not distinct from null PLAN (T INDEX (T_A));
Statement failed, SQLSTATE = 42000
index T_A cannot be used in the specified plan
select * from t where a is not distinct from nullif('', '');
PLAN (T INDEX (T_A))
|
|
Description
|
Problem happens only with the NULL constant. An expression resulting in NULL works.
create table t (a varchar(5));
create index t_a on t (a);
select * from t where a is null;
PLAN (T INDEX (T_A))
select * from t where a is not distinct from null;
PLAN (T NATURAL)
select * from t where a is not distinct from null PLAN (T INDEX (T_A));
Statement failed, SQLSTATE = 42000
index T_A cannot be used in the specified plan
select * from t where a is not distinct from nullif('', '');
PLAN (T INDEX (T_A)) |
Show » |
|