~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/insert.test

  • Committer: Monty Taylor
  • Date: 2008-10-16 06:32:30 UTC
  • mto: (511.1.5 codestyle)
  • mto: This revision was merged to the branch mainline in revision 521.
  • Revision ID: monty@inaugust.com-20081016063230-4brxsra0qsmsg84q
Added -Wunused-macros.

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
 
#
57
46
#Test of behaviour with INSERT VALUES (NULL)
58
47
#
59
48
 
101
90
create table t2(id2 int not null, t char(12));
102
91
create table t3(id3 int not null, t char(12), index(id3));
103
92
disable_query_log;
 
93
set autocommit=0;
 
94
begin;
104
95
let $1 = 100;
105
96
while ($1)
106
97
 {
178
169
insert ignore into t1 values(NULL,100),(NULL,110),(NULL,120);
179
170
insert ignore into t1 values(NULL,10),(NULL,20),(NULL,110),(NULL,120),(NULL,100),(NULL,90);
180
171
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.
181
175
select * from t1 order by id;
182
176
 
183
177
drop table t1;