~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysql-test/t/insert.test

Put errmsg.c in sql-common since it can be built only once and used twice.
Put client.c and net_serv.c in libmysql so that we can only have one
link_sources section. 
Got rid of just about all copying and other weirdness, other than some stuff
in client and client.c/net_serv.c, which need to be reworked.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
drop table t1;
44
44
 
45
45
#
 
46
# Test problem with bulk insert and auto_increment on second part keys
 
47
#
 
48
 
 
49
create table t1 (sid char(20), id int(2) NOT NULL auto_increment, key(sid, id));
 
50
insert into t1 values ('skr',NULL),('skr',NULL),('test',NULL);
 
51
select * from t1;
 
52
insert into t1 values ('rts',NULL),('rts',NULL),('test',NULL);
 
53
select * from t1;
 
54
drop table t1;
 
55
 
 
56
#
46
57
#Test of behaviour with INSERT VALUES (NULL)
47
58
#
48
59
 
90
101
create table t2(id2 int not null, t char(12));
91
102
create table t3(id3 int not null, t char(12), index(id3));
92
103
disable_query_log;
93
 
set autocommit=0;
94
 
begin;
95
104
let $1 = 100;
96
105
while ($1)
97
106
 {
169
178
insert ignore into t1 values(NULL,100),(NULL,110),(NULL,120);
170
179
insert ignore into t1 values(NULL,10),(NULL,20),(NULL,110),(NULL,120),(NULL,100),(NULL,90);
171
180
insert ignore into t1 values(NULL,130),(NULL,140),(500,110),(550,120),(450,100),(NULL,150);
172
 
# PBXT differs from InnoDB here. Main reason is that inserting
173
 
# 500 causes auto inc value to be set to 501, this is never
174
 
# undone because of possible concurrent inserts.
175
181
select * from t1 order by id;
176
182
 
177
183
drop table t1;