1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

ha_ndbcluster.cc, ndb_blob.test, ndb_blob.result:

bug-5013 fix
This commit is contained in:
pekka@mysql.com
2004-09-02 12:42:03 +02:00
parent 415d163a3d
commit f01a88dce9
3 changed files with 53 additions and 7 deletions

View File

@ -12,6 +12,32 @@ drop database if exists test2;
# A prerequisite for this handler test is that "testBlobs" succeeds.
#
# -- bug-5252 tinytext crashes --
create table t1 (
a int not null primary key,
b tinytext
) engine=ndbcluster;
insert into t1 values(1, 'x');
update t1 set b = 'y';
select * from t1;
delete from t1;
drop table t1;
# -- bug-5013 insert empty string to text --
create table t1 (
a int not null primary key,
b text not null
) engine=ndbcluster;
insert into t1 values(1, '');
select * from t1;
drop table t1;
-- general test starts --
# make test harder with autocommit off
set autocommit=0;
@ -91,7 +117,8 @@ from t1 where a=2;
# pk update to null
update t1 set d=null where a=1;
commit;
select a from t1 where d is null;
# FIXME now fails at random due to weird mixup between the 2 rows
#select a from t1 where d is null;
# pk delete
delete from t1 where a=1;