mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Change of internal key_field=NULL handling to avoid error messages.
Optimized SELECT DISTINCT ... ORDER BY ... LIMIT Fixed reference to uninitalized variable
This commit is contained in:
@@ -34,3 +34,17 @@ SELECT * FROM t1 WHERE indexed_field=NULL;
|
||||
SELECT * FROM t1 WHERE indexed_field IS NULL;
|
||||
SELECT * FROM t1 WHERE indexed_field<=>NULL;
|
||||
DROP TABLE t1;
|
||||
|
||||
#
|
||||
# Testing of IFNULL
|
||||
#
|
||||
create table t1 (a int, b int) type=myisam;
|
||||
insert into t1 values(20,null);
|
||||
select t2.b, ifnull(t2.b,"this is null") from t1 as t2 left join t1 as t3 on
|
||||
t2.b=t3.a;
|
||||
select t2.b, ifnull(t2.b,"this is null") from t1 as t2 left join t1 as t3 on
|
||||
t2.b=t3.a order by 1;
|
||||
insert into t1 values(10,null);
|
||||
select t2.b, ifnull(t2.b,"this is null") from t1 as t2 left join t1 as t3 on
|
||||
t2.b=t3.a order by 1;
|
||||
drop table t1;
|
||||
|
||||
Reference in New Issue
Block a user