~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/innodb.test

MergedĀ build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1425
1425
# test the padding of BINARY types and collations (Bug #14189)
1426
1426
 
1427
1427
create table t1 (s1 varbinary(2),primary key (s1)) engine=innodb;
1428
 
create table t3 (s1 varchar(2) binary,primary key (s1)) engine=innodb;
1429
 
create table t4 (s1 char(2) binary,primary key (s1)) engine=innodb;
 
1428
create table t3 (s1 varchar(2) ,primary key (s1)) engine=innodb;
 
1429
create table t4 (s1 char(2) ,primary key (s1)) engine=innodb;
1430
1430
 
1431
1431
insert into t1 values (0x41),(0x4120),(0x4100);
1432
1432
-- error ER_DUP_ENTRY
1470
1470
 
1471
1471
drop table t2,t1;
1472
1472
 
1473
 
create table t1 (a int primary key,s1 varchar(2) binary not null unique) engine=innodb;
1474
 
create table t2 (s1 char(2) binary not null, constraint c foreign key(s1) references t1(s1) on update cascade) engine=innodb;
 
1473
create table t1 (a int primary key,s1 varchar(2) not null unique) engine=innodb;
 
1474
create table t2 (s1 char(2) not null, constraint c foreign key(s1) references t1(s1) on update cascade) engine=innodb;
1475
1475
 
1476
1476
insert into t1 values(1,0x4100),(2,0x41);
1477
1477
insert into t2 values(0x41);