MySQL 8.4.3
Source Code Documentation
sql_digest_state Struct Reference

State data storage for digest_start, digest_add_token. More...

#include <sql_digest_stream.h>

Public Member Functions

void reset (unsigned char *token_array, uint length)
 
bool is_empty ()
 

Public Attributes

int m_last_id_index
 Index, in the digest token array, of the last identifier seen. More...
 
sql_digest_storage m_digest_storage
 

Detailed Description

State data storage for digest_start, digest_add_token.

This structure extends the sql_digest_storage structure with temporary state used only during parsing.

Member Function Documentation

◆ is_empty()

bool sql_digest_state::is_empty ( void  )
inline

◆ reset()

void sql_digest_state::reset ( unsigned char *  token_array,
uint  length 
)
inline

Member Data Documentation

◆ m_digest_storage

sql_digest_storage sql_digest_state::m_digest_storage

◆ m_last_id_index

int sql_digest_state::m_last_id_index

Index, in the digest token array, of the last identifier seen.

Reduce rules used in the digest computation can not apply to tokens seen before an identifier.

See also
digest_add_token

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