MySQL 8.3.0
Source Code Documentation
PT_order_expr Class Reference

#include <parse_tree_nodes.h>

Inheritance diagram for PT_order_expr:
[legend]

Public Member Functions

 PT_order_expr (const POS &pos, Item *item_arg, enum_order dir)
 
bool do_contextualize (Parse_context *pc) override
 
- Public Member Functions inherited from Parse_tree_node_tmpl< Context >
virtual ~Parse_tree_node_tmpl ()=default
 
bool is_contextualized () const
 
virtual bool contextualize (Context *pc) final
 
void error (Context *pc, const POS &pos) const
 syntax_error() function replacement for deferred reporting of syntax errors More...
 
void error (Context *pc, const POS &pos, const char *msg) const
 syntax_error() function replacement for deferred reporting of syntax errors More...
 
void errorf (Context *pc, const POS &pos, const char *format,...) const
 syntax_error() function replacement for deferred reporting of syntax errors More...
 
- Public Member Functions inherited from ORDER
bool is_item_original () const
 

Protected Member Functions

void add_json_info (Json_object *obj) override
 Add all the node-specific json fields. More...
 
- Protected Member Functions inherited from Parse_tree_node_tmpl< Context >
 Parse_tree_node_tmpl ()=delete
 
 Parse_tree_node_tmpl (const POS &pos)
 
 Parse_tree_node_tmpl (const POS &start_pos, const POS &end_pos)
 
bool begin_parse_tree (Show_parse_tree *tree)
 
bool end_parse_tree (Show_parse_tree *tree)
 
virtual bool do_contextualize (Context *pc)
 Do all context-sensitive things and mark the node as contextualized. More...
 

Private Types

typedef Parse_tree_node super
 

Additional Inherited Members

- Public Types inherited from Parse_tree_node_tmpl< Context >
typedef Context context_t
 
- Static Public Member Functions inherited from Parse_tree_node_tmpl< Context >
static void * operator new (size_t size, MEM_ROOT *mem_root, const std::nothrow_t &arg=std::nothrow) noexcept
 
static void operator delete (void *ptr, size_t size)
 
static void operator delete (void *, MEM_ROOT *, const std::nothrow_t &) noexcept
 
- Public Attributes inherited from Parse_tree_node_tmpl< Context >
POS m_pos
 
- Public Attributes inherited from ORDER
ORDERnext {nullptr}
 
MY_BITMAPgrouping_set_info {nullptr}
 If the query block includes non-primitive grouping, then these modifiers are represented as grouping sets. More...
 
Itemitem_initial {nullptr}
 The initial ordering expression. More...
 
Item ** item {&item_initial}
 Points at the item in the select fields. More...
 
Item_rollup_group_itemrollup_item {nullptr}
 
enum_order direction
 
bool in_field_list {false}
 
const char * used_alias {nullptr}
 Tells whether this ORDER element was referenced with an alias or with an expression in the query, and what the alias was: SELECT a AS foo GROUP BY foo: "foo". 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_explicit {false}
 

Member Typedef Documentation

◆ super

Constructor & Destructor Documentation

◆ PT_order_expr()

PT_order_expr::PT_order_expr ( const POS pos,
Item item_arg,
enum_order  dir 
)
inline

Member Function Documentation

◆ add_json_info()

void PT_order_expr::add_json_info ( Json_object json_obj)
inlineoverrideprotectedvirtual

Add all the node-specific json fields.

Any class that needs to add such info should override this function rather than doing it in do_contextualize(). E.g. the parse tree node for AVG() may have "distinct" field to indicate if AVG(DISTINCT ...) is used or not.

Parameters
json_objJson object for this parse tree node.

Reimplemented from Parse_tree_node_tmpl< Context >.

◆ do_contextualize()

bool PT_order_expr::do_contextualize ( Parse_context pc)
override

The documentation for this class was generated from the following files: