~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/insert.result

Merged Padraig.

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);
25
25
insert into t1 values (default,default,default,default);
26
26
insert into t1 values (4,0,"a",5);
27
 
ERROR HY000: Received an invalid timestamp value '0'.
 
27
ERROR HY000: Received an invalid value '0' for a UNIX timestamp.
28
28
insert into t1 values (default,default,default,default);
29
29
select a,t is not null,c,i from t1;
30
30
a       t is not null   c       i
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
85
 
COMMIT;
86
83
drop table t1,t2,t3;
87
84
create table t1 (a int, b int);
88
85
insert into t1 (a,b) values (a,b);