MySQL 8.4.2
Source Code Documentation
sql_digest_storage Struct Reference

Structure to store token count/array for a statement on which digest is to be calculated. More...

#include <sql_digest.h>

Public Member Functions

 sql_digest_storage ()
 
void reset (unsigned char *token_array, size_t length)
 
void reset ()
 
bool is_empty ()
 
void copy (const sql_digest_storage *from)
 

Public Attributes

bool m_full
 
size_t m_byte_count
 
unsigned char m_hash [DIGEST_HASH_SIZE]
 
uint m_charset_number
 Character set number. More...
 
unsigned char * m_token_array
 Token array. More...
 
size_t m_token_array_length
 

Detailed Description

Structure to store token count/array for a statement on which digest is to be calculated.

Constructor & Destructor Documentation

◆ sql_digest_storage()

sql_digest_storage::sql_digest_storage ( )
inline

Member Function Documentation

◆ copy()

void sql_digest_storage::copy ( const sql_digest_storage from)
inline

◆ is_empty()

bool sql_digest_storage::is_empty ( void  )
inline

◆ reset() [1/2]

void sql_digest_storage::reset ( void  )
inline

◆ reset() [2/2]

void sql_digest_storage::reset ( unsigned char *  token_array,
size_t  length 
)
inline

Member Data Documentation

◆ m_byte_count

size_t sql_digest_storage::m_byte_count

◆ m_charset_number

uint sql_digest_storage::m_charset_number

Character set number.

◆ m_full

bool sql_digest_storage::m_full

◆ m_hash

unsigned char sql_digest_storage::m_hash[DIGEST_HASH_SIZE]

◆ m_token_array

unsigned char* sql_digest_storage::m_token_array

Token array.

Token array is an array of bytes to store tokens received during parsing. Following is the way token array is formed. ... <non-id-token> <non-id-token> <id-token> <id_len> <id_text> ... For Example: SELECT * FROM T1; <SELECT_TOKEN> <*> <FROM_TOKEN> <ID_TOKEN> <2> <T1>

Note
Only the first m_byte_count bytes are initialized, out of m_token_array_length.

◆ m_token_array_length

size_t sql_digest_storage::m_token_array_length

The documentation for this struct was generated from the following file: