~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/auto_increment.test

  • Committer: Andrew Hutchings
  • Date: 2010-09-08 19:03:09 UTC
  • mfrom: (1750 staging)
  • mto: (1750.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1751.
  • Revision ID: andrew@linuxjedi.co.uk-20100908190309-mya1nu7xvo1fpvk8
Merge trunk into branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
update t1 set a=0 where b=5;
137
137
select * from t1 order by b;
138
138
delete from t1 where a=0;
139
 
--error 1048
 
139
--error ER_BAD_NULL_ERROR
140
140
update t1 set a=NULL where b=6;
141
141
update t1 set a=300 where b=7;
142
142
insert into t1(a,b)values(NULL,8);
151
151
update t1 set a=0 where b=12;
152
152
select * from t1 order by b;
153
153
delete from t1 where a=0;
154
 
--error 1048
 
154
--error ER_BAD_NULL_ERROR
155
155
update t1 set a=NULL where b=13;
156
156
update t1 set a=500 where b=14;
157
157
select * from t1 order by b;
169
169
 
170
170
create table t1 (a bigint);
171
171
insert into t1 values (1), (2), (3), (0), (0);
172
 
--error 1062
 
172
--error ER_DUP_ENTRY
173
173
alter table t1 modify a bigint not null auto_increment primary key; 
174
174
select * from t1;
175
175
drop table t1;
198
198
select * from t1;
199
199
#set sql_mode= '';
200
200
alter table t1 modify b varchar(255);
201
 
--error 1062
 
201
--error ER_DUP_ENTRY
202
202
insert into t1 values (0,4);
203
203
select * from t1;
204
204
drop table t1;