| 1 |
USE performance_schema; |
| 2 |
truncate table events_statements_history_long; |
| 3 |
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; |
| 4 |
1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1 |
| 5 |
74 |
| 6 |
#################################### |
| 7 |
# QUERYING PS STATEMENT DIGEST |
| 8 |
#################################### |
| 9 |
create table test.events_long select * from events_statements_history_long; |
| 10 |
SELECT event_name, test.check_digest(digest), digest_text, sql_text FROM test.events_long; |
| 11 |
event_name test.check_digest(digest) digest_text sql_text |
| 12 |
statement/sql/select 1 SELECT ? + ? + SELECT ... |
| 13 |
statement/sql/truncate 1 TRUNCATE TABLE truncat... |
| 14 |
drop table test.events_long; |