summaryrefslogtreecommitdiff
path: root/mysql-test/suite/perfschema/t/start_server_low_digest_sql_length.test
blob: ce8233a98ce846e6b84819e9bd3018424fbdf090 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# -----------------------------------------------------------------------
# Tests for the performance schema statement Digests.
# -----------------------------------------------------------------------

--source include/not_embedded.inc
--source include/have_perfschema.inc
--source include/no_protocol.inc

USE performance_schema;
truncate table events_statements_history_long;

# -----------------------------------------------------------------------
# Test to show how the digest behaves with low value of 
#  - performance_schema_max_digest_length
#  - performance_schema_max_sql_text_length
# -----------------------------------------------------------------------
SELECT 1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1;

--echo ####################################
--echo # QUERYING PS STATEMENT DIGEST
--echo ####################################
--sorted_result
SELECT event_name, digest, digest_text, sql_text FROM events_statements_history_long;