mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-28820 MyISAM wrong server status flags
MyISAM tables no longer take transactional metadata locks unless there already is an active transaction.
This commit is contained in:
@@ -88,3 +88,47 @@ unlock tables;
|
||||
connection default;
|
||||
disconnect locker;
|
||||
DROP TABLE t1,t3;
|
||||
#
|
||||
# MDEV-28820 MyISAM wrong server status flags
|
||||
#
|
||||
create table t1 (a int);
|
||||
set autocommit=0;
|
||||
select @@in_transaction;
|
||||
@@in_transaction
|
||||
0
|
||||
select * from t1;
|
||||
a
|
||||
select @@in_transaction;
|
||||
@@in_transaction
|
||||
0
|
||||
connect foo,localhost,root;
|
||||
drop table t1;
|
||||
connection default;
|
||||
set autocommit=1;
|
||||
create table t1 (a int);
|
||||
create table t2 (b int) engine=innodb;
|
||||
set autocommit=0;
|
||||
select @@in_transaction;
|
||||
@@in_transaction
|
||||
0
|
||||
select * from t2;
|
||||
b
|
||||
select @@in_transaction;
|
||||
@@in_transaction
|
||||
1
|
||||
select * from t1;
|
||||
a
|
||||
connection foo;
|
||||
drop table t1;
|
||||
connection default;
|
||||
select * from t1;
|
||||
a
|
||||
commit;
|
||||
connection foo;
|
||||
disconnect foo;
|
||||
connection default;
|
||||
set autocommit=default;
|
||||
drop table t2;
|
||||
#
|
||||
# End of 10.4 tests
|
||||
#
|
||||
|
Reference in New Issue
Block a user