My Project
Functions
sql_executor.cc File Reference

Query execution. More...

#include "sql_select.h"
#include "sql_executor.h"
#include "sql_optimizer.h"
#include "sql_join_buffer.h"
#include "opt_trace.h"
#include "sql_test.h"
#include "sql_base.h"
#include "key.h"
#include "sql_derived.h"
#include "sql_show.h"
#include "filesort.h"
#include "sql_tmp_table.h"
#include "records.h"
#include "opt_explain_format.h"
#include <algorithm>

Functions

bool prepare_sum_aggregators (Item_sum **func_ptr, bool need_distinct)
bool setup_sum_funcs (THD *thd, Item_sum **func_ptr)
bool copy_funcs (Item **func_ptr, const THD *thd)
void setup_tmptable_write_func (JOIN_TAB *tab)
 Setup write_func of QEP_tmp_table object.
Next_select_func setup_end_select_func (JOIN *join, JOIN_TAB *tab)
enum_nested_loop_state sub_select_op (JOIN *join, JOIN_TAB *join_tab, bool end_of_records)
 Accumulate full or partial join result in operation and send operation's result further.
enum_nested_loop_state sub_select (JOIN *join, JOIN_TAB *join_tab, bool end_of_records)
int do_sj_dups_weedout (THD *thd, SJ_TMP_TABLE *sjtbl)
int report_handler_error (TABLE *table, int error)
int safe_index_read (JOIN_TAB *tab)
int join_read_const_table (JOIN_TAB *tab, POSITION *pos)
void join_read_key_unlock_row (st_join_table *tab)
int join_read_last_key (JOIN_TAB *tab)
int join_read_prev_same (READ_RECORD *info)
int join_init_quick_read_record (JOIN_TAB *tab)
int read_first_record_seq (JOIN_TAB *tab)
int join_init_read_record (JOIN_TAB *tab)
 Prepare table for reading rows and read first record.
int join_materialize_derived (JOIN_TAB *tab)
int join_materialize_semijoin (JOIN_TAB *tab)
int join_read_first (JOIN_TAB *tab)
int join_read_last (JOIN_TAB *tab)
void pick_table_access_method (JOIN_TAB *tab)
enum_nested_loop_state end_send_group (JOIN *join, JOIN_TAB *join_tab __attribute__((unused)), bool end_of_records)
enum_nested_loop_state end_write_group (JOIN *join, JOIN_TAB *join_tab, bool end_of_records)
bool cp_buffer_from_ref (THD *thd, TABLE *table, TABLE_REF *ref)
bool make_group_fields (JOIN *main_join, JOIN *curr_join)
bool alloc_group_fields (JOIN *join, ORDER *group)
int test_if_item_cache_changed (List< Cached_item > &list)
bool setup_copy_fields (THD *thd, TMP_TABLE_PARAM *param, Ref_ptr_array ref_pointer_array, List< Item > &res_selected_fields, List< Item > &res_all_fields, uint elements, List< Item > &all_fields)
void copy_fields (TMP_TABLE_PARAM *param)
bool change_to_use_tmp_fields (THD *thd, Ref_ptr_array ref_pointer_array, List< Item > &res_selected_fields, List< Item > &res_all_fields, uint elements, List< Item > &all_fields)
bool change_refs_to_tmp_fields (THD *thd, Ref_ptr_array ref_pointer_array, List< Item > &res_selected_fields, List< Item > &res_all_fields, uint elements, List< Item > &all_fields)

Detailed Description

Query execution.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines