![]() |
MySQL 8.0.29
Source Code Documentation
|
Internal state of the parser. More...
#include <sql_lex.h>
Public Member Functions | |
Parser_state () | |
bool | init (THD *thd, const char *buff, size_t length) |
Object initializer. More... | |
void | reset (const char *found_semicolon, size_t length) |
void | add_comment () |
Signal that the current query has a comment. More... | |
bool | has_comment () const |
Check whether the current query has a comment. More... | |
Public Attributes | |
Parser_input | m_input |
Lex_input_stream | m_lip |
Yacc_state | m_yacc |
PSI_digest_locker * | m_digest_psi |
Current performance digest instrumentation. More... | |
Protected Member Functions | |
Parser_state (int grammar_selector_token) | |
Constructor for special parsers of partial SQL clauses (DD) More... | |
Private Attributes | |
bool | m_comment |
True if current query contains comments. More... | |
Internal state of the parser.
The complete state consist of:
|
inlineexplicitprotected |
Constructor for special parsers of partial SQL clauses (DD)
grammar_selector_token | See Lex_input_stream::grammar_selector_token |
|
inline |
|
inline |
Signal that the current query has a comment.
|
inline |
Check whether the current query has a comment.
|
inline |
Object initializer.
Must be called before usage.
false | OK |
true | Error |
|
inline |
|
private |
True if current query contains comments.
PSI_digest_locker* Parser_state::m_digest_psi |
Current performance digest instrumentation.
Parser_input Parser_state::m_input |
Lex_input_stream Parser_state::m_lip |
Yacc_state Parser_state::m_yacc |