2011-07-17 11:28:48 +02:00
|
|
|
--source include/have_response_time_distribution.inc
|
|
|
|
--source include/have_debug.inc
|
|
|
|
|
2011-12-14 14:58:22 +01:00
|
|
|
CREATE TABLE t(a INT);
|
2011-07-17 11:28:48 +02:00
|
|
|
|
2011-12-14 14:58:22 +01:00
|
|
|
delimiter ^;
|
|
|
|
CREATE PROCEDURE test_f(t DECIMAL(3,2))
|
2011-07-17 11:28:48 +02:00
|
|
|
BEGIN
|
2011-12-14 14:58:22 +01:00
|
|
|
SET SESSION query_exec_time=t;
|
|
|
|
INSERT INTO t VALUES(1);
|
|
|
|
SET SESSION query_exec_time=0.1;
|
|
|
|
DELETE FROM t;
|
|
|
|
END^
|
|
|
|
delimiter ;^
|
|
|
|
|
|
|
|
--let base=1
|
|
|
|
--source include/query_response_time-stored.inc
|
|
|
|
--let base=2
|
|
|
|
--source include/query_response_time-stored.inc
|
|
|
|
--let base=10
|
|
|
|
--source include/query_response_time-stored.inc
|
|
|
|
--let base=7
|
|
|
|
--source include/query_response_time-stored.inc
|
|
|
|
--let base=156
|
|
|
|
--source include/query_response_time-stored.inc
|
|
|
|
--let base=1000
|
|
|
|
--source include/query_response_time-stored.inc
|
|
|
|
--let base=1001
|
|
|
|
--source include/query_response_time-stored.inc
|
|
|
|
|
|
|
|
SET GLOBAL QUERY_RESPONSE_TIME_RANGE_BASE=default;
|
|
|
|
SET GLOBAL QUERY_RESPONSE_TIME_STATS=default;
|
|
|
|
|
|
|
|
DROP PROCEDURE test_f;
|
|
|
|
|
|
|
|
DROP TABLE t;
|