~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/auto_increment.test

  • Committer: Monty Taylor
  • Date: 2010-10-02 05:07:25 UTC
  • mto: (1817.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 1818.
  • Revision ID: mordred@inaugust.com-20101002050725-h1b30b0nr3leeoh1
Embed a modified version of parse_config_file. There are several more bugs
that we'll want to fix in it, and then submit upstream. Eventually we should
be able to remove this- but for now the version on lucid is completely
broken.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
insert into t1 values (NULL,5),(NULL,6);
14
14
select * from t1;
15
15
delete from t1 where a=6;
16
 
#show table status like "t1";
 
16
--replace_column 1 #  6 # 7 # 8 # 9 # 10 #
 
17
show table status like "t1";
17
18
replace t1 values (3,1);
18
19
ALTER TABLE t1 add c int;
19
20
replace t1 values (3,3,3);
135
136
update t1 set a=0 where b=5;
136
137
select * from t1 order by b;
137
138
delete from t1 where a=0;
138
 
--error 1048
 
139
--error ER_BAD_NULL_ERROR
139
140
update t1 set a=NULL where b=6;
140
141
update t1 set a=300 where b=7;
141
142
insert into t1(a,b)values(NULL,8);
150
151
update t1 set a=0 where b=12;
151
152
select * from t1 order by b;
152
153
delete from t1 where a=0;
153
 
--error 1048
 
154
--error ER_BAD_NULL_ERROR
154
155
update t1 set a=NULL where b=13;
155
156
update t1 set a=500 where b=14;
156
157
select * from t1 order by b;
168
169
 
169
170
create table t1 (a bigint);
170
171
insert into t1 values (1), (2), (3), (0), (0);
171
 
--error 1062
 
172
--error ER_DUP_ENTRY
172
173
alter table t1 modify a bigint not null auto_increment primary key; 
173
174
select * from t1;
174
175
drop table t1;
197
198
select * from t1;
198
199
#set sql_mode= '';
199
200
alter table t1 modify b varchar(255);
200
 
--error 1062
 
201
--error ER_DUP_ENTRY
201
202
insert into t1 values (0,4);
202
203
select * from t1;
203
204
drop table t1;