~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/insert.test

  • Committer: Brian Aker
  • Date: 2011-02-14 05:47:07 UTC
  • mto: This revision was merged to the branch mainline in revision 2167.
  • Revision ID: brian@tangent.org-20110214054707-61nsqgg1g4w1zhx1
Merge in all changes for current_session, etc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
create table t1 (a int not null auto_increment, primary key (a), t timestamp null, c char(10) default "hello", i int);
34
34
insert into t1 values (default,default,default,default);
35
35
insert into t1 values (default,default,default,default);
36
 
--error ER_INVALID_UNIX_TIMESTAMP_VALUE # Bad timestamp
 
36
--error ER_INVALID_TIMESTAMP_VALUE # Bad timestamp
37
37
insert into t1 values (4,0,"a",5);
38
38
insert into t1 values (default,default,default,default);
39
39
select a,t is not null,c,i from t1;
51
51
#
52
52
 
53
53
create table t1 (id int NOT NULL DEFAULT 8);
 
54
--error ER_BAD_NULL_ERROR
54
55
insert into t1 values(NULL);
 
56
--error ER_BAD_NULL_ERROR
55
57
insert into t1 values (1), (NULL), (2);
56
58
select * from t1;
57
59
drop table t1;
94
94
create table t2(id2 int not null, t char(12));
95
95
create table t3(id3 int not null, t char(12), index(id3));
96
96
disable_query_log;
97
 
set autocommit=0;
98
97
begin;
99
98
let $1 = 100;
100
99
while ($1)
120
119
insert into  t2 select t1.* from t1, t2 t, t3 where  t1.id1 = t.id2 and t.id2 = t3.id3;
121
120
insert into  t2 select SQL_BIG_RESULT t1.* from t1, t2 t, t3 where  t1.id1 = t.id2 and t.id2 = t3.id3;
122
121
select count(*) from t2;
 
122
COMMIT;
123
123
drop table t1,t2,t3;
124
124
 
125
125
#