mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 22:12:30 +01:00
e86580c3dd
because thd->update_server_status() is used to measure the query time for the slow log (not only to set protocol level flags), it needs to be called also when the server isn't going to send anything to the client.
12 lines
523 B
Text
12 lines
523 B
Text
set @event_scheduler_save= @@global.event_scheduler;
|
|
set @slow_query_log_save= @@global.slow_query_log;
|
|
set global event_scheduler= on;
|
|
set global slow_query_log= on;
|
|
set global long_query_time=0.2;
|
|
create table t1 (i int);
|
|
insert into t1 values (0);
|
|
create event ev on schedule at CURRENT_TIMESTAMP + INTERVAL 1 second do update t1 set i=1+sleep(0.5);
|
|
drop table t1;
|
|
set global event_scheduler= @event_scheduler_save;
|
|
set global slow_query_log= @slow_query_log_save;
|
|
set global long_query_time= @@session.long_query_time;
|