crash with select after adding autoinc pkey
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Fix Released
|
Critical
|
Stewart Smith | ||
Cherry |
Fix Released
|
Critical
|
Brian Aker | ||
MySQL Server |
Unknown
|
Unknown
|
Bug Description
create temporary table t1 (v varchar(32) not null);
insert into t1 values ('def')
select * from t1;
# Fast alter, no copy performed
alter table t1 change v v2 varchar(32);
select * from t1;
# Fast alter, no copy performed
alter table t1 change v2 v varchar(64);
select * from t1;
update t1 set v = 'lmn' where v = 'hij';
select * from t1;
# Regular alter table
alter table t1 add i int auto_increment not null primary key first;
select * from t1;
update t1 set i=5 where i=3;
select * from t1;
alter table t1 change i i bigint;
select * from t1;
alter table t1 add unique key (i, v);
select * from t1 where i between 2 and 4 and v in ('def',
drop table t1;
hits assert on the selecT:
update t1 set i=5 where i=3;
select * from t1;
Related branches
Changed in drizzle: | |
assignee: | nobody → Stewart Smith (stewart-flamingspork) |
Changed in drizzle: | |
milestone: | aloha → bell |
Changed in drizzle: | |
milestone: | bell → cherry |
Changed in drizzle: | |
status: | Confirmed → Fix Released |
assertion happens here
drizzled: sql_base.cc:1754: Table* Session: :open_table( TableList* , bool*, uint32_t): Assertion `!table- >auto_increment _field_ not_null' failed.