summaryrefslogtreecommitdiff
path: root/mysql-test/suite/perfschema/t/digest_table_full.test
blob: b0ff0ab6f21f45e773758e8b77c30c97587c9c0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# ----------------------------------------------------
# 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 ####################################
SELECT DIGEST, DIGEST_TEXT, COUNT_STAR, SUM_ROWS_AFFECTED, SUM_WARNINGS,
       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