~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/insert.test

  • Committer: Monty Taylor
  • Date: 2009-04-25 20:45:19 UTC
  • mto: (997.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 1003.
  • Revision ID: mordred@inaugust.com-20090425204519-lgrl7mz2r66v0jby
Blackhole.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#
20
20
 
21
21
create table t1 (id int not null auto_increment primary key, username varchar(32) not null, unique (username));
22
 
insert into t1 values (NULL,"mysql");
23
 
insert into t1 values (NULL,"mysql ab");
24
 
insert into t1 values (NULL,"mysql a");
25
 
insert into t1 values (NULL,"r1manic");
26
 
insert into t1 values (NULL,"r1man");
 
22
insert into t1 values (0,"mysql");
 
23
insert into t1 values (0,"mysql ab");
 
24
insert into t1 values (0,"mysql a");
 
25
insert into t1 values (0,"r1manic");
 
26
insert into t1 values (0,"r1man");
27
27
drop table t1;
28
28
 
29
29
#
65
65
create table t1 (email varchar(50));
66
66
insert into t1 values ('sasha@mysql.com'),('monty@mysql.com'),('foo@hotmail.com'),('foo@aol.com'),('bar@aol.com');
67
67
create table t2(id int not null auto_increment primary key, t2 varchar(50), unique(t2));
68
 
insert into t2 (t2) select distinct substring(email, locate('@', email)+1) from t1;
 
68
insert delayed into t2 (t2) select distinct substring(email, locate('@', email)+1) from t1;
69
69
select * from t2;
70
70
drop table t1,t2;
71
71