mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Log each slow query in a multi-statement query to the slow query log.
(Bug #8475)
This commit is contained in:
@@ -31,3 +31,20 @@ select 5'abcd'
|
||||
select 'finish';
|
||||
finish
|
||||
finish
|
||||
flush status;
|
||||
create table t1 (i int);
|
||||
insert into t1 values (1);
|
||||
select * from t1 where i = 1;
|
||||
insert into t1 values (2),(3),(4);
|
||||
select * from t1 where i = 2;
|
||||
select * from t1 where i = 3||||
|
||||
i
|
||||
1
|
||||
i
|
||||
2
|
||||
i
|
||||
3
|
||||
show status like 'Slow_queries'||||
|
||||
Variable_name Value
|
||||
Slow_queries 2
|
||||
drop table t1||||
|
||||
|
||||
Reference in New Issue
Block a user