24#ifndef SQL_DD_SHOW_QUERY_BUILDER_H
25#define SQL_DD_SHOW_QUERY_BUILDER_H
43namespace info_schema {
Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:853
A typesafe replacement for DYNAMIC_ARRAY.
Definition: mem_root_array.h:61
Definition: parse_tree_nodes.h:484
Definition: parse_tree_nodes.h:214
Definition: parse_tree_nodes.h:382
Definition: parse_tree_nodes.h:405
This class represents a query block, aka a query specification, which is a query consisting of a SELE...
Definition: sql_lex.h:1156
Using this class is fraught with peril, and you need to be very careful when doing so.
Definition: sql_string.h:168
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
This class provide framework to build a Query_block using ParseTree nodes.
Definition: show_query_builder.h:80
Query_block * prepare_query_block()
Prepare a Query_block using all the information information added to this Select_lex_builder.
Definition: show_query_builder.cc:301
PT_select_item_list * m_select_item_list
Definition: show_query_builder.h:257
bool add_condition(Item *a)
Add a WHERE clause condition to Select_lex_builder.
Definition: show_query_builder.cc:230
Item * m_where_clause
Definition: show_query_builder.h:263
bool add_star_select_item()
Add item representing star in "SELECT '*' ...".
Definition: show_query_builder.cc:77
bool add_select_item(const LEX_CSTRING &field_name, const LEX_CSTRING &alias)
Add item representing a column as,.
Definition: show_query_builder.cc:89
const POS * m_pos
Definition: show_query_builder.h:251
PT_order_list * m_order_by_list
Definition: show_query_builder.h:266
Item * prepare_equal_item(const LEX_CSTRING &field_name, const LEX_CSTRING &value)
Prepare item representing a equal to comparison condition,.
Definition: show_query_builder.cc:201
PT_derived_table * prepare_derived_table(const LEX_CSTRING &table_alias)
This function build ParseTree node that represents this Select_lex_builder as sub-query.
Definition: show_query_builder.cc:273
Mem_root_array_YY< PT_table_reference * > m_table_reference_list
Definition: show_query_builder.h:260
bool add_select_expr(Item *select_list_item, const LEX_CSTRING &alias)
Add expression as an item tree, with an alias to name the resulting column.
Definition: show_query_builder.cc:109
bool add_to_select_item_list(Item *expr)
Prepare a list of expression used to build select items for the query being built.
Definition: show_query_builder.cc:63
bool add_from_item(const LEX_CSTRING &schema_name, const LEX_CSTRING &table_name)
Add item representing a FROM clause table as,.
Definition: show_query_builder.cc:125
Select_lex_builder(const POS *pc, THD *thd)
Definition: show_query_builder.cc:54
Item * prepare_like_item(const LEX_CSTRING &field_name, const String *wild)
Prepare item representing a LIKE condition,.
Definition: show_query_builder.cc:173
THD * m_thd
Definition: show_query_builder.h:254
bool add_order_by(const LEX_CSTRING &field_name)
Add a ORDER BY clause field to Select_lex_builder.
Definition: show_query_builder.cc:250
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:43
const char * table_name
Definition: rules_table_service.cc:56
YYLTYPE POS
Definition: show_query_builder.h:38
Definition: mysql_lex_string.h:40
Bison "location" class.
Definition: parse_location.h:43