Commit 5466b0df authored by kostja@bodhi.(none)'s avatar kostja@bodhi.(none)

Add a teste case for Bug#27296 "Assertion in ALTER TABLE SET DEFAULT in

Linux Debug build (possible deadlock)"

The bug is not repeatable any more.
parent 6c152b29
...@@ -676,4 +676,8 @@ INSERT INTO t1 VALUES (1); ...@@ -676,4 +676,8 @@ INSERT INTO t1 VALUES (1);
switch to connection default switch to connection default
SET AUTOCOMMIT=default; SET AUTOCOMMIT=default;
DROP TABLE t1,t2; DROP TABLE t1,t2;
drop table if exists t1;
create table t1 (a int) engine=innodb;
alter table t1 alter a set default 1;
drop table t1;
End of 5.0 tests End of 5.0 tests
...@@ -670,5 +670,19 @@ DISCONNECT c1; ...@@ -670,5 +670,19 @@ DISCONNECT c1;
DISCONNECT c2; DISCONNECT c2;
DROP TABLE t1,t2; DROP TABLE t1,t2;
#
# Bug#27296 Assertion in ALTER TABLE SET DEFAULT in Linux Debug build
# (possible deadlock).
#
# The bug is applicable only to a transactoinal table.
# Cover with tests behavior that no longer causes an
# assertion.
#
--disable_warnings
drop table if exists t1;
--enable_warnings
create table t1 (a int) engine=innodb;
alter table t1 alter a set default 1;
drop table t1;
--echo End of 5.0 tests --echo End of 5.0 tests
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment