25#ifndef ROUTING_SQL_LEXER_PARSER_STATE_INCLUDED
26#define ROUTING_SQL_LEXER_PARSER_STATE_INCLUDED
Internal state of the parser.
Definition: sql_lexer_parser_state.h:43
Lex_input_stream m_lip
Definition: sql_lexer_parser_state.h:78
void add_comment()
Signal that the current query has a comment.
Definition: sql_lexer_parser_state.h:72
void reset(const char *found_semicolon, size_t length)
Definition: sql_lexer_parser_state.h:66
Yacc_state m_yacc
Definition: sql_lexer_parser_state.h:79
Parser_state()
Definition: sql_lexer_parser_state.h:54
Parser_input m_input
Definition: sql_lexer_parser_state.h:77
Parser_state(int grammar_selector_token)
Constructor for special parsers of partial SQL clauses (DD)
Definition: sql_lexer_parser_state.h:50
bool has_comment() const
Check whether the current query has a comment.
Definition: sql_lexer_parser_state.h:74
bool m_comment
True if current query contains comments.
Definition: sql_lexer_parser_state.h:87
bool init(THD *thd, const char *buff, size_t length)
Object initializer.
Definition: sql_lexer_parser_state.h:62
PSI_digest_locker * m_digest_psi
Current performance digest instrumentation.
Definition: sql_lex.h:4589
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:33
The internal state of the syntax parser.
Definition: sql_lexer_yacc_state.h:245
void reset()
Definition: sql_lexer_yacc_state.h:251
struct PSI_digest_locker PSI_digest_locker
Definition: psi_statement_bits.h:111
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:75