~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/insert.test

  • Committer: Barry.Leslie at PrimeBase
  • Date: 2011-01-22 03:22:44 UTC
  • mfrom: (2101 staging)
  • mto: (2228.1.4 build)
  • mto: This revision was merged to the branch mainline in revision 2230.
  • Revision ID: barry.leslie@primebase.com-20110122032244-ukbe3mlj7fs8xph6
Merged with lp:drizzle.

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;
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
#