23#include <drizzled/nested_join.h>
24#include <drizzled/table.h>
85 schema_select_lex(NULL),
95 internal_tmp_table(
false),
111 TableList **prev_global;
117 const char *getSchemaName()
const
122 void setSchemaName(
const char* v)
130 const char* table_name;
133 const char *getTableName()
const
138 void setTableName(
const char* v)
180 bool isCartesian()
const;
206 Select_Lex *schema_select_lex;
215 thr_lock_type lock_type;
218 void set_underlying_merge();
219 bool setup_underlying(
Session *session);
302 inline TableList *top_table()
370 friend std::ostream& operator<<(std::ostream& output,
const TableList &list)
372 output <<
"TableList:(";
373 output << list.getSchemaName();
375 output << list.getTableName();
377 output << list.alias;
379 output <<
"is_natural_join:" << list.is_natural_join;
381 output <<
"is_join_columns_complete:" << list.is_join_columns_complete;
383 output <<
"straight:" << list.straight;
385 output <<
"force_index" << list.force_index;
387 output <<
"ignore_leaves:" << list.ignore_leaves;
389 output <<
"create:" << list.create;
391 output <<
"outer_join:" << list.outer_join;
393 output <<
"nested_join:" << list.nested_join;
399 void setIsAlias(
bool in_is_alias)
404 void setIsFqtn(
bool in_is_fqtn)
409 void setCreate(
bool in_create)
414 void setInternalTmpTable(
bool in_internal_tmp_table)
416 internal_tmp_table= in_internal_tmp_table;
419 void setDbType(plugin::StorageEngine *in_db_type)
424 void setJoinList(List<TableList> *in_join_list)
429 void setEmbedding(TableList *in_embedding)
434 void setNestedJoin(NestedJoin *in_nested_join)
439 void setDepTables(table_map in_dep_tables)
444 void setOnExprDepTables(table_map in_on_expr_dep_tables)
449 bool getIsAlias()
const
454 bool getIsFqtn()
const
459 bool isCreate()
const
464 bool getInternalTmpTable()
const
466 return internal_tmp_table;
469 plugin::StorageEngine *getDbType()
const
474 TableList *getEmbedding()
const
479 List<TableList> *getJoinList()
const
484 NestedJoin *getNestedJoin()
const
489 table_map getDepTables()
const
494 table_map getOnExprDepTables()
const
499 void unlock_table_name();
509 bool internal_tmp_table;
529void close_thread_tables(
Session *session);
List< Natural_join_column > * join_columns
table_map dep_tables
tables the table depends on
TableList * last_leaf_for_name_resolution()
bool process_index_hints(Table *table)
bool is_join_columns_complete
bool ignore_leaves
preload only non-leaf nodes
bool force_index
prefer index over table scan
Item_subselect * containing_subselect()
void print(Session *session, String *str)
TableList * embedding
nested join containing the table
uint32_t outer_join
Which join type.
TableList * first_leaf_for_name_resolution()
table_map on_expr_dep_tables
tables on expression depends on
const char * option
Used by cache index.
Select_Lex_Unit * derived
Select_Lex_Unit of derived table */.
NestedJoin * nested_join
if the element is a nested join
bool straight
optimize with prev table
List< TableList > * join_list
join list the table belongs to
COND_EQUAL * cond_equal
Used with outer join.
List< Index_hint > * index_hints
TableList * next_name_resolution_table
Item * on_expr
Used with outer join.
List< String > * join_using_fields
Table * table
opened table
TableList * find_underlying_table(Table *table)
select_union * derived_result
plugin::StorageEngine * db_type
table_type for handler
bool is_leaf_for_name_resolution() const
void unlock_table_names(TableList *last_table=NULL)
TODO: Rename this file - func.h is stupid.