~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to mysql-test/r/constraints.result

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
drop table if exists t1;
 
2
create table t1 (a int check (a>0));
 
3
insert into t1 values (1);
 
4
insert into t1 values (0);
 
5
drop table t1;
 
6
create table t1 (a int ,b int, check a>b);
 
7
insert into t1 values (1,0);
 
8
insert into t1 values (0,1);
 
9
drop table t1;
 
10
create table t1 (a int ,b int, constraint abc check (a>b));
 
11
insert into t1 values (1,0);
 
12
insert into t1 values (0,1);
 
13
drop table t1;
 
14
create table t1 (a int null);
 
15
insert into t1 values (1),(NULL);
 
16
drop table t1;
 
17
create table t1 (a int null);
 
18
alter table t1 add constraint constraint_1 unique (a);
 
19
alter table t1 add constraint unique key_1(a);
 
20
alter table t1 add constraint constraint_2 unique key_2(a);
 
21
show create table t1;
 
22
Table   Create Table
 
23
t1      CREATE TABLE "t1" (
 
24
  "a" int(11),
 
25
  UNIQUE KEY "constraint_1" ("a"),
 
26
  UNIQUE KEY "key_1" ("a"),
 
27
  UNIQUE KEY "key_2" ("a")
 
28
) ENGINE=MyISAM DEFAULT CHARSET=latin1
 
29
drop table t1;