26#ifndef ROUTING_SQL_PARSER_STATE_INCLUDED
27#define ROUTING_SQL_PARSER_STATE_INCLUDED
Internal state of the parser.
Definition: sql_lexer_parser_state.h:44
void reset(const char *found_semicolon, size_t length)
Definition: sql_lexer_parser_state.h:67
bool init(THD *thd, const char *buff, size_t length)
Object initializer.
Definition: sql_lexer_parser_state.h:63
Definition: sql_lexer.h:35
Definition: sql_parser_state.h:35
MEM_ROOT mem_root_
Definition: sql_parser_state.h:60
THD * thd()
Definition: sql_parser_state.h:55
std::string stmt_
Definition: sql_parser_state.h:64
SqlParserState()
Definition: sql_parser_state.h:37
Parser_state * parser_state()
Definition: sql_parser_state.h:57
void statement(std::string_view stmt)
Definition: sql_parser_state.h:42
SqlLexer lexer(bool reset_state=true)
Definition: sql_parser_state.h:49
THD session_
Definition: sql_parser_state.h:61
Parser_state parser_state_
Definition: sql_parser_state.h:62
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
Parser_state * m_parser_state
Internal parser state.
Definition: sql_lexer_thd.h:66
MEM_ROOT * mem_root
Definition: sql_lexer_thd.h:40
This file follows Google coding style, except for the name MEM_ROOT (which is kept for historical rea...
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:83
void reset_state(task_env *p)
Definition: task.cc:661