~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/pbxt/auto_increment.result

Merge Joe, plus I updated the tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
222
222
create table t1 (a bigint);
223
223
insert into t1 values (1), (2), (3), (0), (0);
224
224
alter table t1 modify a bigint not null auto_increment primary key;
225
 
ERROR 23000: Duplicate entry '0' for key 'PRIMARY'
 
225
ERROR 23000: ALTER TABLE causes auto_increment resequencing, resulting in duplicate entry '0' for key 'PRIMARY'
226
226
select * from t1;
227
227
a
228
228
1
288
288
SHOW CREATE TABLE `t1`;
289
289
Table   Create Table
290
290
t1      CREATE TABLE `t1` (
291
 
  `t1_name` VARCHAR(255) COLLATE utf8_general_ci DEFAULT NULL,
292
 
  `t1_id` INT NOT NULL AUTO_INCREMENT,
 
291
  `t1_name` varchar(255) DEFAULT NULL,
 
292
  `t1_id` int NOT NULL AUTO_INCREMENT,
293
293
  PRIMARY KEY (`t1_id`),
294
294
  KEY `t1_name` (`t1_name`)
295
 
) ENGINE=PBXT COLLATE = utf8_general_ci AUTO_INCREMENT=1000
 
295
) ENGINE=PBXT
296
296
DROP TABLE `t1`;
297
297
create table t1(a int not null auto_increment primary key);
298
298
create table t2(a int not null auto_increment primary key, t1a int);