2004-10-26 18:30:01 +02:00
|
|
|
# PS doesn't support multi-statements
|
|
|
|
--disable_ps_protocol
|
|
|
|
|
2005-09-22 02:23:07 +02:00
|
|
|
--disable_warnings
|
|
|
|
DROP TABLE IF EXISTS t1;
|
|
|
|
--enable_warnings
|
|
|
|
|
2003-12-16 05:09:44 +01:00
|
|
|
select 1;
|
|
|
|
delimiter ||||;
|
|
|
|
select 2;
|
|
|
|
select 3;
|
|
|
|
select 4||||
|
|
|
|
delimiter 'abcd'||||
|
|
|
|
select 5;
|
|
|
|
select 6;
|
|
|
|
select 50, 'abc';'abcd'
|
|
|
|
select "abcd'";'abcd'select "'abcd";'abcd'
|
|
|
|
select 5'abcd'
|
|
|
|
delimiter ;'abcd'
|
|
|
|
select 'finish';
|
2005-02-17 20:48:44 +01:00
|
|
|
|
|
|
|
# Bug #8475: Make sure every statement that is a slow query in
|
|
|
|
# a multi-statement query gets logged as a slow query.
|
|
|
|
flush status;
|
|
|
|
delimiter ||||;
|
|
|
|
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||||
|
|
|
|
show status like 'Slow_queries'||||
|
|
|
|
drop table t1||||
|
|
|
|
|
|
|
|
delimiter ;||||
|
2005-07-28 02:22:47 +02:00
|
|
|
|
|
|
|
# End of 4.1 tests
|