mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
1ff79b61a0
mysql-test/r/show_check.result: proc table now shows up in different places. mysql-test/r/status.result: proc table now shows up in different places. sql/sp.cc: Fixed closing of tables. sql/sp_head.cc: Close tables after each sub statement. sql/sql_class.cc: Removed closing of tables in various send_eof() methods again.
19 lines
422 B
Text
19 lines
422 B
Text
flush status;
|
|
show status like 'Table_lock%';
|
|
Variable_name Value
|
|
Table_locks_immediate 0
|
|
Table_locks_waited 0
|
|
SET SQL_LOG_BIN=0;
|
|
drop table if exists t1;
|
|
create table t1(n int) type=myisam;
|
|
insert into t1 values(1);
|
|
lock tables t1 read;
|
|
unlock tables;
|
|
lock tables t1 read;
|
|
update t1 set n = 3;
|
|
unlock tables;
|
|
show status like 'Table_lock%';
|
|
Variable_name Value
|
|
Table_locks_immediate 4
|
|
Table_locks_waited 1
|
|
drop table t1;
|