1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

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

This commit is contained in:
tomas@poseidon.ndb.mysql.com
2004-10-20 17:22:58 +00:00
parent a1bd5432c4
commit 8ae6219c26
3 changed files with 54 additions and 2 deletions

View File

@@ -358,3 +358,16 @@ select b,test.t1.attr1 from test.t1, t2 where test.t1.pk1 < a;
drop table test.t1, t2;
drop database mysqltest;
#
# test support of char(0)
#
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;
select * from t1 order by b;
select * from t1 where b IS NULL;
select * from t1 where b IS NOT NULL;
drop table t1;