~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/insert.test

  • Committer: Monty Taylor
  • Date: 2010-12-26 01:32:11 UTC
  • mto: This revision was merged to the branch mainline in revision 2038.
  • Revision ID: mordred@inaugust.com-20101226013211-c1tx52h7evovmijg
fixed dict and eval.

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_TIMESTAMP_VALUE # Bad timestamp
 
36
--error ER_INVALID_UNIX_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
-- error 1048
55
55
insert into t1 values(NULL);
56
 
--error ER_BAD_NULL_ERROR
 
56
-- error 1048
57
57
insert into t1 values (1), (NULL), (2);
58
58
select * from t1;
59
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;
97
98
begin;
98
99
let $1 = 100;
99
100
while ($1)
119
120
insert into  t2 select t1.* from t1, t2 t, t3 where  t1.id1 = t.id2 and t.id2 = t3.id3;
120
121
insert into  t2 select SQL_BIG_RESULT t1.* from t1, t2 t, t3 where  t1.id1 = t.id2 and t.id2 = t3.id3;
121
122
select count(*) from t2;
122
 
COMMIT;
123
123
drop table t1,t2,t3;
124
124
 
125
125
#