mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
merge with 3.23 to get bugfixes for <=> NULL and --bind-address
This commit is contained in:
@@ -228,3 +228,20 @@ alter table t1 add key id (id);
|
||||
select * from t1, t2 where t1.id = t2.id;
|
||||
id id
|
||||
drop table t1,t2;
|
||||
id id2
|
||||
NULL 0
|
||||
1 1
|
||||
id id2
|
||||
NULL 0
|
||||
id id2
|
||||
NULL 0
|
||||
1 1
|
||||
id id2
|
||||
NULL 0
|
||||
1 1
|
||||
id id2
|
||||
1 1
|
||||
id id2
|
||||
1 1
|
||||
id id2
|
||||
1 1
|
||||
|
||||
@@ -166,6 +166,7 @@ select to_days("0000-00-00"),to_days(d),to_days(dt),to_days(t),to_days(c) from t
|
||||
select extract(MONTH FROM "0000-00-00"),extract(MONTH FROM d),extract(MONTH FROM dt),extract(MONTH FROM t),extract(MONTH FROM c) from t1;
|
||||
drop table t1;
|
||||
|
||||
|
||||
#
|
||||
# Test problem with TIMESTAMP and BETWEEN
|
||||
#
|
||||
|
||||
@@ -135,3 +135,24 @@ select * from t1, t2 where t1.id = t2.id;
|
||||
alter table t1 add key id (id);
|
||||
select * from t1, t2 where t1.id = t2.id;
|
||||
drop table t1,t2;
|
||||
|
||||
#
|
||||
# Check bug when doing <=> NULL on an indexed null field
|
||||
#
|
||||
|
||||
create table t1 (
|
||||
id integer,
|
||||
id2 integer not null,
|
||||
index (id),
|
||||
index (id2)
|
||||
);
|
||||
insert into t1 values(null,null),(1,1);
|
||||
select * from t1;
|
||||
select * from t1 where id <=> null;
|
||||
select * from t1 where id <=> null or id > 0;
|
||||
select * from t1 where id is null or id > 0;
|
||||
select * from t1 where id2 <=> null or id2 > 0;
|
||||
select * from t1 where id2 is null or id2 > 0;
|
||||
delete from t1 where id <=> NULL;
|
||||
select * from t1;
|
||||
drop table t1;
|
||||
|
||||
Reference in New Issue
Block a user