| 1 |
# ----------------------------------------------------------------------- |
| 2 |
# Tests for the performance schema statement Digests. |
| 3 |
# ----------------------------------------------------------------------- |
| 4 |
|
| 5 |
--source include/not_embedded.inc |
| 6 |
--source include/have_perfschema.inc |
| 7 |
# Test requires: sp-protocol/ps-protocol/view-protocol/cursor-protocol disabled |
| 8 |
--source include/no_protocol.inc |
| 9 |
--source include/not_msan_with_debug.inc |
| 10 |
# Thread stack overrun on solaris |
| 11 |
let $have_solaris = `select convert(@@version_compile_os using latin1) LIKE ("solaris%")`; |
| 12 |
if ($have_solaris) |
| 13 |
{ |
| 14 |
skip Test requires: 'not_solaris'; |
| 15 |
} |
| 16 |
|
| 17 |
USE performance_schema; |
| 18 |
truncate table events_statements_summary_by_digest; |
| 19 |
|
| 20 |
# ----------------------------------------------------------------------- |
| 21 |
# Test to show how the digest behaves with long queries, when the token |
| 22 |
# stream is truncated. digest text is calculated based on value of |
| 23 |
# performance_schema_max_digest_length. |
| 24 |
# NOTE: For this test case to run, we need to start mysql server |
| 25 |
# with bigger stack using "--thread_stack=#" option. |
| 26 |
# ----------------------------------------------------------------------- |
| 27 |
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+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+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+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+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+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+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+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+1+1; |
| 28 |
|
| 29 |
--echo #################################### |
| 30 |
--echo # QUERYING PS STATEMENT DIGEST |
| 31 |
--echo #################################### |
| 32 |
SELECT schema_name, digest_text, count_star FROM events_statements_summary_by_digest; |