1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

fix so that ndb handler can cope with char(0), mapped to char(1) for now

This commit is contained in:
unknown
2004-10-20 17:22:58 +00:00
parent b76fb15ce6
commit 44db341fdb
3 changed files with 54 additions and 2 deletions

View File

@ -395,3 +395,22 @@ b attr1
9413 9412
drop table test.t1, t2;
drop database mysqltest;
use test;
create table t1 (a int primary key, b char(0));
insert into t1 values (1,"");
insert into t1 values (2,NULL);
select * from t1 order by a;
a b
1
2 NULL
select * from t1 order by b;
a b
2 NULL
1
select * from t1 where b IS NULL;
a b
2 NULL
select * from t1 where b IS NOT NULL;
a b
1
drop table t1;