1
# this test needs multithreaded mysqltest
2
-- source include/not_embedded.inc
4
# Test sleeps for long times
5
--source include/big_test.inc
7
# check that CSV engine was compiled in
8
--source include/have_csv.inc
10
connect (con1,localhost,root,,);
11
connect (con2,localhost,root,,);
14
# Bug #27638: slow logging to CSV table inserts bad query_time and lock_time values
17
set session long_query_time=10;
18
select get_lock('bug27638', 1);
20
set session long_query_time=1;
21
truncate table mysql.slow_log;
22
select get_lock('bug27638', 2);
23
select if (query_time between '00:00:01' and '00:00:10', 'OK', 'WRONG') as qt, sql_text from mysql.slow_log;
24
truncate table mysql.slow_log;
25
select get_lock('bug27638', 60);
26
select if (query_time between '00:00:59' and '00:01:10', 'OK', 'WRONG') as qt, sql_text from mysql.slow_log;
27
truncate table mysql.slow_log;
28
select get_lock('bug27638', 101);
29
select if (query_time between '00:01:40' and '00:01:50', 'OK', 'WRONG') as qt, sql_text from mysql.slow_log;
31
select release_lock('bug27638');