1
by brian
clean slate |
1 |
# PS doesn't support multi-statements |
2 |
--disable_ps_protocol
|
|
3 |
||
4 |
--disable_warnings
|
|
5 |
DROP TABLE IF EXISTS t1;
|
|
6 |
--enable_warnings
|
|
7 |
||
8 |
select 1;
|
|
9 |
delimiter ||||;
|
|
10 |
select 2;
|
|
11 |
select 3;
|
|
12 |
select 4||||
|
|
13 |
delimiter 'abcd'|||| |
|
14 |
select 5;
|
|
15 |
select 6;
|
|
16 |
select 50, 'abc';'abcd' |
|
17 |
select "abcd'";'abcd'select "'abcd";'abcd' |
|
18 |
select 5'abcd' |
|
19 |
delimiter ;'abcd' |
|
20 |
select 'finish'; |
|
21 |
||
22 |
# Bug #8475: Make sure every statement that is a slow query in
|
|
23 |
# a multi-statement query gets logged as a slow query.
|
|
24 |
flush status;
|
|
25 |
delimiter ||||;
|
|
26 |
create table t1 (i int);
|
|
27 |
insert into t1 values (1);
|
|
28 |
select * from t1 where i = 1;
|
|
29 |
insert into t1 values (2),(3),(4);
|
|
30 |
select * from t1 where i = 2;
|
|
31 |
select * from t1 where i = 3||||
|
|
32 |
show status like 'Slow_queries'|||| |
|
33 |
drop table t1|||| |
|
34 |
||
35 |
delimiter ;|||| |
|
36 |
||
37 |
# End of 4.1 tests |