~capttofu/drizzle/federated_schema

« back to all changes in this revision

Viewing changes to mysql-test/t/log_tables-big.test

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# this test needs multithreaded mysqltest
 
2
-- source include/not_embedded.inc
 
3
 
 
4
# Test sleeps for long times
 
5
--source include/big_test.inc
 
6
 
 
7
# check that CSV engine was compiled in
 
8
--source include/have_csv.inc
 
9
 
 
10
connect (con1,localhost,root,,);
 
11
connect (con2,localhost,root,,);
 
12
 
 
13
#
 
14
# Bug #27638: slow logging to CSV table inserts bad query_time and lock_time values
 
15
#
 
16
connection con1;
 
17
set session long_query_time=10;
 
18
select get_lock('bug27638', 1);
 
19
connection con2;
 
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;
 
30
connection con1;
 
31
select release_lock('bug27638');
 
32
connection default;
 
33
 
 
34
disconnect con1;
 
35
disconnect con2;