2012-08-14 17:23:34 +03:00
|
|
|
# ----------------------------------------------------
|
|
|
|
# Tests for the performance schema statement Digests.
|
|
|
|
# ----------------------------------------------------
|
|
|
|
|
|
|
|
# Test case to show behavior of statements digest when
|
|
|
|
# statement-digest-size is 0
|
|
|
|
|
|
|
|
--source include/not_embedded.inc
|
|
|
|
--source include/have_perfschema.inc
|
|
|
|
|
|
|
|
# Initial Setup for Digest
|
|
|
|
--source ../include/digest_setup.inc
|
|
|
|
|
|
|
|
TRUNCATE TABLE performance_schema.events_statements_summary_by_digest;
|
|
|
|
|
|
|
|
# Executing queries
|
|
|
|
--source ../include/digest_execution.inc
|
|
|
|
|
|
|
|
--echo ####################################
|
|
|
|
--echo # QUERYING PS STATEMENT DIGEST
|
|
|
|
--echo ####################################
|
2014-10-07 11:37:36 +03:00
|
|
|
SELECT SCHEMA_NAME, DIGEST_TEXT, COUNT_STAR, SUM_ROWS_AFFECTED, SUM_WARNINGS,
|
2012-08-14 17:23:34 +03:00
|
|
|
SUM_ERRORS FROM performance_schema.events_statements_summary_by_digest;
|
|
|
|
|
|
|
|
|
|
|
|
# Expect no digest
|
|
|
|
SHOW VARIABLES LIKE "performance_schema_digests_size";
|
|
|
|
SELECT COUNT(*) FROM performance_schema.events_statements_summary_by_digest;
|
|
|
|
|
|
|
|
# Cleanup for Digest
|
|
|
|
--source ../include/digest_cleanup.inc
|
|
|
|
|