~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/include/mix2.inc

MergedĀ build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
381
381
 
382
382
eval create $temp table t1 (
383
383
  id int NOT NULL auto_increment,
384
 
  ggid varchar(32) binary DEFAULT '' NOT NULL,
 
384
  ggid varchar(32) DEFAULT '' NOT NULL,
385
385
  email varchar(64) DEFAULT '' NOT NULL,
386
 
  passwd varchar(32) binary DEFAULT '' NOT NULL,
 
386
  passwd varchar(32) DEFAULT '' NOT NULL,
387
387
  PRIMARY KEY (id),
388
388
  UNIQUE ggid (ggid)
389
389
) ENGINE=$engine_type;
1730
1730
 
1731
1731
eval create $temp table t1 (s1 varbinary(2),primary key (s1)) engine=$engine_type;
1732
1732
eval create $temp table t2 (s1 binary(2),primary key (s1)) engine=$engine_type;
1733
 
eval create $temp table t3 (s1 varchar(2) binary,primary key (s1)) engine=$engine_type;
1734
 
eval create $temp table t4 (s1 char(2) binary,primary key (s1)) engine=$engine_type;
 
1733
eval create $temp table t3 (s1 varchar(2),primary key (s1)) engine=$engine_type;
 
1734
eval create $temp table t4 (s1 char(2),primary key (s1)) engine=$engine_type;
1735
1735
 
1736
1736
insert into t1 values (0x41),(0x4120),(0x4100);
1737
1737
-- error ER_DUP_ENTRY
1786
1786
 
1787
1787
drop table t2,t1;
1788
1788
 
1789
 
eval create $temp table t1 (a int primary key,s1 varchar(2) binary not null unique) engine=$engine_type;
1790
 
eval create $temp table t2 (s1 char(2) binary not null, constraint c foreign key(s1) references t1(s1) on update cascade) engine=$engine_type;
 
1789
eval create $temp table t1 (a int primary key,s1 varchar(2) not null unique) engine=$engine_type;
 
1790
eval create $temp table t2 (s1 char(2) not null, constraint c foreign key(s1) references t1(s1) on update cascade) engine=$engine_type;
1791
1791
 
1792
1792
insert into t1 values(1,0x4100),(2,0x41);
1793
1793
insert into t2 values(0x41);