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

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
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -676,4 +676,8 @@ INSERT INTO t1 VALUES (1);
switch to connection default
SET AUTOCOMMIT=default;
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
+14 −0
Original line number Diff line number Diff line
@@ -670,5 +670,19 @@ DISCONNECT c1;
DISCONNECT c2;
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