MySQL 8.0.40
Source Code Documentation

Base class for regular (non-generated) column definition nodes. More...

#include <parse_tree_column_attrs.h>

Inheritance diagram for PT_field_def:
[legend]

Public Member Functions

 PT_field_def (PT_type *type_node_arg, Mem_root_array< PT_column_attr_base * > *opt_attrs)
 
bool contextualize (Parse_context *pc_arg) override
 
- Public Member Functions inherited from PT_field_def_base
bool 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)
 Do all context-sensitive things and mark the node as contextualized. More...
 
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...
 

Private Types

typedef PT_field_def_base super
 

Private Attributes

Mem_root_array< PT_column_attr_base * > * opt_attrs
 

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 PT_field_def_base
enum_field_types type
 
ulong type_flags
 
const char * length
 
const char * dec
 
const CHARSET_INFOcharset
 
bool has_explicit_collation
 
uint uint_geom_type
 
List< String > * interval_list
 
alter_info_flags_t alter_info_flags
 
LEX_CSTRING comment
 
Itemdefault_value
 
Itemon_update_value
 
Value_generatorgcol_info
 
Value_generatordefault_val_info
 Holds the expression to generate default values. More...
 
std::optional< gis::srid_tm_srid
 
Sql_check_constraint_spec_listcheck_const_spec_list {nullptr}
 
- Protected Member Functions inherited from PT_field_def_base
 PT_field_def_base (PT_type *type_node)
 
template<class T >
bool contextualize_attrs (Column_parse_context *pc, Mem_root_array< T * > *attrs)
 
- Protected Member Functions inherited from Parse_tree_node_tmpl< Context >
 Parse_tree_node_tmpl ()
 
- Protected Attributes inherited from PT_field_def_base
PT_typetype_node
 

Detailed Description

Base class for regular (non-generated) column definition nodes.

Member Typedef Documentation

◆ super

Constructor & Destructor Documentation

◆ PT_field_def()

PT_field_def::PT_field_def ( PT_type type_node_arg,
Mem_root_array< PT_column_attr_base * > *  opt_attrs 
)
inline

Member Function Documentation

◆ contextualize()

bool PT_field_def::contextualize ( Parse_context pc_arg)
inlineoverride

Member Data Documentation

◆ opt_attrs

Mem_root_array<PT_column_attr_base *>* PT_field_def::opt_attrs
private

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