~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/insert.result

  • Committer: Monty Taylor
  • Date: 2009-03-06 03:33:24 UTC
  • mfrom: (916.1.2 merge)
  • Revision ID: mordred@inaugust.com-20090306033324-dcedf80g9qzywbvu
Merged Brian's merge... re-rotate the tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
6
15
15
drop table t1;
16
16
create table t1 (id int not null auto_increment primary key, username varchar(32) not null, unique (username));
17
 
insert into t1 values (NULL,"mysql");
18
 
insert into t1 values (NULL,"mysql ab");
19
 
insert into t1 values (NULL,"mysql a");
20
 
insert into t1 values (NULL,"r1manic");
21
 
insert into t1 values (NULL,"r1man");
 
17
insert into t1 values (0,"mysql");
 
18
insert into t1 values (0,"mysql ab");
 
19
insert into t1 values (0,"mysql a");
 
20
insert into t1 values (0,"r1manic");
 
21
insert into t1 values (0,"r1man");
22
22
drop table t1;
23
23
create table t1 (a int not null auto_increment, primary key (a), t timestamp null, c char(10) default "hello", i int);
24
24
insert into t1 values (default,default,default,default);
56
56
create table t1 (email varchar(50));
57
57
insert into t1 values ('sasha@mysql.com'),('monty@mysql.com'),('foo@hotmail.com'),('foo@aol.com'),('bar@aol.com');
58
58
create table t2(id int not null auto_increment primary key, t2 varchar(50), unique(t2));
59
 
insert into t2 (t2) select distinct substring(email, locate('@', email)+1) from t1;
 
59
insert delayed into t2 (t2) select distinct substring(email, locate('@', email)+1) from t1;
60
60
select * from t2;
61
61
id      t2
62
62
1       mysql.com
77
77
count(*)
78
78
500
79
79
insert into  t2 select t1.* from t1, t2 t, t3 where  t1.id1 = t.id2 and t.id2 = t3.id3;
80
 
ERROR HY000: Temporary table too large, rerun with SQL_BIG_RESULT.
81
 
insert into  t2 select SQL_BIG_RESULT t1.* from t1, t2 t, t3 where  t1.id1 = t.id2 and t.id2 = t3.id3;
82
80
select count(*) from t2;
83
81
count(*)
84
82
25500