mariadb/mysql-test/suite/perfschema/t/statement_digest_consumers2.test
unknown 54999b2863 Merge performance schema test cases from MySQL 5.6.10
Merged the majority of the PFS test cases.
There are still 19 failing test cases that need more attention.
2013-07-08 15:19:50 +03:00

37 lines
1.3 KiB
Text

# ----------------------------------------------------
# Tests for the performance schema statement Digests.
# ----------------------------------------------------
# Test case to show behavior of statements digest in combination of different
# consumers enabled/disabled
--source include/not_embedded.inc
--source include/have_perfschema.inc
# Initial Setup for Digest
--source ../include/digest_setup.inc
# -----------------------------------------
# Consumer State |
# -----------------------------------------
# statements_digest Enabled |
# events_statement_current Disabled |
# global_implementation Disabled ? |
# thread_implementation Disabled ? |
# -----------------------------------------
SELECT * FROM performance_schema.setup_consumers;
TRUNCATE TABLE performance_schema.events_statements_summary_by_digest;
# Executing queries
--source ../include/digest_execution.inc
--echo ####################################
--echo # QUERYING PS STATEMENT DIGEST
--echo ####################################
SELECT schema_name, digest, digest_text, count_star FROM performance_schema.events_statements_summary_by_digest;
SELECT digest, digest_text FROM performance_schema.events_statements_current;
# Cleanup for Digest
--source ../include/digest_cleanup.inc