WL#9637: SQL Function to return DIGEST of given SQL

Affects: Server-8.0   —   Status: Complete

This feature has been requested by many users. They want to ask the server for a digest for a query so they can correlate it with their application-side query capturing.

The feature consists of two new functions for which we see examples below:

mysql> SELECT statement_digest('SELECT * FROM foo') ->fc86ab9f4e4275ef861733844e3b2710313376a3a632204f99eecf8ce0855f4d

mysql> SELECT statement_digest_text('SELECT * FROM foo') -> 'SELECT * FROM `foo`'