MySQL  8.0.21
Source Code Documentation
ORDER Struct Reference

#include <table.h>

Inheritance diagram for ORDER:
PT_order_expr

Public Attributes

ORDERnext {nullptr}
 
Item ** item {nullptr}
 Points at the item in the select fields. More...
 
Itemitem_ptr {nullptr}
 
Item_rollup_group_itemrollup_item {nullptr}
 
enum_order direction
 
bool in_field_list {false}
 
bool used_alias {false}
 Tells whether this ORDER element was referenced with an alias or with an expression, in the query: SELECT a AS foo GROUP BY foo: true. More...
 
Fieldfield_in_tmp_table {nullptr}
 When GROUP BY is implemented with a temporary table (i.e. More...
 
char * buff {nullptr}
 
table_map used {0}
 
table_map depend_map {0}
 
bool is_position {false}
 
bool is_explicit {false}
 

Member Data Documentation

◆ buff

char* ORDER::buff {nullptr}

◆ depend_map

table_map ORDER::depend_map {0}

◆ direction

enum_order ORDER::direction
Initial value:

◆ field_in_tmp_table

Field* ORDER::field_in_tmp_table {nullptr}

When GROUP BY is implemented with a temporary table (i.e.

the table takes care to store only unique group rows, table->group != nullptr), each GROUP BY expression is stored in a column of the table, which is 'field_in_tmp_table'. Such field may point into table->record[0] (if we only use it to get its value from a tmp table's row), or into 'buff' (if we use it to do index lookup into the tmp table).

◆ in_field_list

bool ORDER::in_field_list {false}

◆ is_explicit

bool ORDER::is_explicit {false}

◆ is_position

bool ORDER::is_position {false}

◆ item

Item** ORDER::item {nullptr}

Points at the item in the select fields.

Note that this means that after resolving, it points into a slice (see JOIN::ref_items), even though the item is not of type Item_ref!

◆ item_ptr

Item* ORDER::item_ptr {nullptr}

◆ next

ORDER* ORDER::next {nullptr}

◆ rollup_item

Item_rollup_group_item* ORDER::rollup_item {nullptr}

◆ used

table_map ORDER::used {0}

◆ used_alias

bool ORDER::used_alias {false}

Tells whether this ORDER element was referenced with an alias or with an expression, in the query: SELECT a AS foo GROUP BY foo: true.

SELECT a AS foo GROUP BY a: false.


The documentation for this struct was generated from the following file: