~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/insert.result

  • Committer: Jay Pipes
  • Date: 2009-02-04 15:44:25 UTC
  • mfrom: (829 drizzle)
  • mto: This revision was merged to the branch mainline in revision 830.
  • Revision ID: jpipes@serialcoder-20090204154425-th8xfk2ujz2y8xwg
Merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
insert into t1 values (0,"r1manic");
21
21
insert into t1 values (0,"r1man");
22
22
drop table t1;
23
 
create table t1 (a int not null auto_increment, primary key (a), t timestamp null, c char(10) default "hello", i int);
24
 
insert into t1 values (default,default,default,default);
25
 
insert into t1 values (default,default,default,default);
26
 
insert into t1 values (4,0,"a",5);
27
 
ERROR HY000: Received an invalid value '0' for a UNIX timestamp.
28
 
insert into t1 values (default,default,default,default);
29
 
select a,t is not null,c,i from t1;
30
 
a       t is not null   c       i
31
 
1       0       hello   NULL
32
 
2       0       hello   NULL
33
 
3       0       hello   NULL
 
23
create table t1 (a int not null auto_increment, primary key (a), t timestamp, c char(10) default "hello", i int);
 
24
insert into t1 values (default,default,default,default), (default,default,default,default), (4,0,"a",5),(default,default,default,default);
 
25
select a,t>0,c,i from t1;
 
26
a       t>0     c       i
 
27
1       1       hello   NULL
 
28
2       1       hello   NULL
 
29
4       0       a       5
 
30
5       1       hello   NULL
34
31
truncate table t1;
35
32
insert into t1 set a=default,t=default,c=default;
36
33
insert into t1 set a=default,t=default,c=default,i=default;
37
 
insert into t1 set a=4,t= NULL,c="a",i=5;
38
 
insert into t1 set a=5,t= NULL,c="a",i=null;
 
34
insert into t1 set a=4,t=0,c="a",i=5;
 
35
insert into t1 set a=5,t=0,c="a",i=null;
39
36
insert into t1 set a=default,t=default,c=default,i=default;
40
 
select a,t is not null,c,i from t1;
41
 
a       t is not null   c       i
42
 
1       0       hello   NULL
43
 
2       0       hello   NULL
 
37
select a,t>0,c,i from t1;
 
38
a       t>0     c       i
 
39
1       1       hello   NULL
 
40
2       1       hello   NULL
44
41
4       0       a       5
45
42
5       0       a       NULL
46
 
6       0       hello   NULL
 
43
6       1       hello   NULL
47
44
drop table t1;
48
45
create table t1 (id int NOT NULL DEFAULT 8);
49
46
insert into t1 values(NULL);