24#ifndef PARSE_TREE_NODES_INCLUDED
25#define PARSE_TREE_NODES_INCLUDED
45#include "mysqld_error.h"
149template <
class Node_type,
class Parse_context_type>
151 Parse_context_type *pc) {
152 for (Node_type *i : nodes)
153 if (i->contextualize(pc))
return true;
180 "Parse tree display of this statement");
245 for (
ORDER *o =
value.first; o !=
nullptr; o = o->next) {
597 using std::has_single_bit;
598 static_assert(has_single_bit(
unsigned{
JTT_INNER}),
"not a single bit");
599 static_assert(has_single_bit(
unsigned{
JTT_STRAIGHT}),
"not a single bit");
600 static_assert(has_single_bit(
unsigned{
JTT_NATURAL}),
"not a single bit");
601 static_assert(has_single_bit(
unsigned{
JTT_LEFT}),
"not a single bit");
602 static_assert(has_single_bit(
unsigned{
JTT_RIGHT}),
"not a single bit");
657 :
super(pos, tab1_node_arg, join_pos_arg,
type, tab2_node_arg),
672 :
super(pos, tab1_node_arg, join_pos_arg,
type, tab2_node_arg),
701 Item *sample_percentage)
716 obj->
add_alias(
"olap_options", create_dom_ptr<Json_string>(
"ROLLUP"));
814 if (locking_clause->contextualize(pc))
return true;
911 const POS &expr_pos,
Item *opt_expr)
991 const POS &error_pos)
1030 const char *password_arg,
1031 const char *current_password_arg,
1032 bool retain_current,
1033 bool random_password,
1034 const POS &expr_pos_arg)
1058 const POS &pos,
LEX_USER *user_arg,
const char *password_arg,
1059 const char *current_password_arg,
bool retain_current,
bool random_pass,
1060 const POS &expr_pos_arg)
1096 const POS &value_pos_arg)
1113 const POS &tail_pos)
1114 :
super(pos, delimiter_pos_arg, tail, tail_pos),
head(head_arg) {}
1133 const POS &head_pos_arg,
1159 :
super(pos,
"transaction_read_only", (
int32)is_read_only) {}
1167 :
super(pos,
"transaction_isolation", (
int32)level) {}
1198 const POS &end_pos_arg)
1243 const POS &characteristics_pos_arg)
1352 :
super(pos, name_arg) {}
1481 m_from(from_to->m_borders[0]),
1482 m_to(from_to->m_borders[1]),
1514 Item *opt_where_clause_arg,
PT_group *opt_group_clause_arg,
1516 Item *opt_qualify_clause_arg,
bool implicit_from_clause)
1529 assert(implicit_from_clause ?
from_clause.empty() :
true);
1536 Item *opt_where_clause_arg)
1623 :
super(pos, options_arg, item_list_arg, from_clause_arg,
nullptr) {}
1668 if (
m_limit !=
nullptr && !order && limit) {
1691 if (
m_order !=
nullptr &&
m_limit ==
nullptr && !order && limit) {
1785 qe(query_expression),
1800 bool is_rhs_in_parentheses =
false)
1815 return body.has_into_clause();
1820 m_list[
m_list.elements - 1]->has_trailing_into_clause();
1903 bool has_trailing_locking_clauses =
false)
1945 PT_hint_list *opt_hints_arg,
int opt_delete_options_arg,
1949 PT_order *opt_order_clause_arg,
Item *opt_delete_limit_clause_arg)
1966 PT_hint_list *opt_hints_arg,
int opt_delete_options_arg,
1969 Item *opt_where_clause_arg)
2016 bool opt_ignore_arg,
2019 Item *opt_where_clause_arg,
PT_order *opt_order_clause_arg,
2020 Item *opt_limit_clause_arg)
2182 for (
size_t pos = 0; pos <
length; pos++) {
2183 if (std::iscntrl(
str[pos]))
return true;
2370template <
typename Option_type, Option_type KEY_CREATE_INFO::*Property>
2580 uint64_t Property_flag>
2598#define TYPE_AND_REF(x) decltype(x), &x
2786template <u
long Property_flag, table_options_t Yes, table_options_t No>
2975 assert(
value !=
nullptr);
2990 assert(
value !=
nullptr);
3590 m_all(opt_engine.str ==
nullptr) {}
3686 Item *opt_where =
nullptr)
3712 sql_cmd(opt_for_user, opt_using_users) {
3713 assert(opt_using_users ==
nullptr || opt_for_user !=
nullptr);
4079 const char *opt_place)
4104 if (column->contextualize(pc))
return true;
4136 const char *opt_place)
4145 const char *opt_place)
4220 :
super(pos, alter_info_flag),
4250 is_enforced ?
Alter_info::ENFORCE_CHECK_CONSTRAINT
4252 name, is_enforced) {}
4277 Item *opt_default_expr)
4280 m_expr(opt_default_expr) {}
4440 :
super(pos, alter_info_flag) {}
4483 const POS &pos,
bool no_write_to_binlog,
4505 :
super(pos, no_write_to_binlog) {
4560 :
super(pos,
Alter_info::ALTER_REBUILD_PARTITION, opt_partition_list),
4621 uint
flags, uint sql_flags)
4645 uint
flags, uint sql_flags)
4697 opt_partition_list) {}
4713 bool no_write_to_binlog)
4734 const POS &pos,
bool no_write_to_binlog,
4829 :
super(pos,
Alter_info::ALTER_DISCARD_TABLESPACE, opt_partition_list) {}
4843 :
super(pos,
Alter_info::ALTER_IMPORT_TABLESPACE, opt_partition_list) {}
4933 bool no_write_to_binlog,
4955 bool no_write_to_binlog,
5003 bool no_write_to_binlog,
5231 bool show_parse_tree =
false);
5237template <
typename Option_type, Option_type Tablespace_options::*Option>
5325 my_error(ER_FILEGROUP_OPTION_ONLY_ONCE,
MYF(0),
"COMMENT");
5352 my_error(ER_FILEGROUP_OPTION_ONLY_ONCE,
MYF(0),
"STORAGE ENGINE");
5379 my_error(ER_FILEGROUP_OPTION_ONLY_ONCE,
MYF(0),
"FILE_BLOCK_SIZE");
5405 opt_priority.is_default ? 0 : opt_priority.value,
enabled),
5425 opt_priority.is_default ? 0 : opt_priority.value,
5426 enable.is_default ? false : enable.value, force,
5427 !enable.is_default) {}
5477 std::optional<std::string_view> explain_into_variable_name,
5506 String *opt_xml_rows_identified_by,
5512 ulonglong memory_size,
bool is_bulk_operation)
5514 m_cmd(filetype, is_local_file, source_type,
filename, file_count,
5515 in_key_order, on_duplicate,
table, opt_partitions, opt_charset,
5516 compression_algorithm, opt_xml_rows_identified_by,
5518 opt_fields_or_vars ? &opt_fields_or_vars->value :
nullptr,
5519 opt_set_fields ? &opt_set_fields->value :
nullptr,
5520 opt_set_exprs ? &opt_set_exprs->value :
nullptr,
5521 opt_set_expr_strings, parallel, memory_size, is_bulk_operation),
5523 assert((opt_set_fields ==
nullptr) ^ (opt_set_exprs !=
nullptr));
5524 assert(opt_set_fields ==
nullptr ||
5525 opt_set_fields->
value.size() == opt_set_exprs->
value.size());
5588template <
class To, PT_set_operation::Setop_type Tag>
5590 return (from->
type() == Tag &&
5591 down_cast<PT_set_operation *>(from)->is_distinct() == is_distinct &&
5593 ?
static_cast<To *
>(from)
5618template <
class Class, PT_set_operation::Setop_type Tag>
5623 bool is_right_in_parentheses) {
5624 if (left ==
nullptr || right ==
nullptr)
return nullptr;
5625 Class *left_setop = setop_cast<Class, Tag>(left, is_distinct);
5626 Class *right_setop [[maybe_unused]] =
5627 setop_cast<Class, Tag>(right, is_distinct);
5628 assert(right_setop ==
nullptr);
5629 if (left_setop !=
nullptr) {
5631 left_setop->m_list.push_back(right);
5632 left_setop->set_is_rhs_in_parentheses(is_right_in_parentheses);
5637 Class(pos, left, is_distinct, right, is_right_in_parentheses);
Kerberos Client Authentication nullptr
Definition: auth_kerberos_client_plugin.cc:251
bool check_stack_overrun(const THD *thd, long margin, unsigned char *buf)
Check stack for a overrun.
Definition: check_stack.cc:110
Class representing SET DEFAULT, DROP DEFAULT, RENAME COLUMN, SET VISIBLE and SET INVISIBLE clause in ...
Definition: sql_alter.h:82
Class representing ALTER CHECK and ALTER CONSTRAINT clauses in ALTER TABLE statement.
Definition: sql_alter.h:184
Type
Definition: sql_alter.h:186
Class representing DROP COLUMN, DROP KEY, DROP FOREIGN KEY, DROP CHECK CONSTRAINT and DROP CONSTRAINT...
Definition: sql_alter.h:65
drop_type
Definition: sql_alter.h:67
An ALTER INDEX operation that changes the visibility of an index.
Definition: sql_alter.h:148
Data describing the table being created by CREATE TABLE or altered by ALTER TABLE.
Definition: sql_alter.h:205
enum_alter_table_algorithm
The different values of the ALGORITHM clause.
Definition: sql_alter.h:355
enum_alter_table_lock
The different values of the LOCK clause.
Definition: sql_alter.h:373
Mem_root_array< const Alter_drop * > drop_list
Columns, keys and constraints to be dropped.
Definition: sql_alter.h:405
Mem_root_array< const Alter_constraint_enforcement * > alter_constraint_enforcement_list
List of check constraints whose enforcement state is changed.
Definition: sql_alter.h:419
List< String > partition_names
Definition: sql_alter.h:433
enum_with_validation
Status of validation clause in ALTER TABLE statement.
Definition: sql_alter.h:391
@ ENABLE
Definition: sql_alter.h:349
@ DISABLE
Definition: sql_alter.h:349
Mem_root_array< const Alter_column * > alter_list
Definition: sql_alter.h:407
enum_enable_or_disable keys_onoff
Definition: sql_alter.h:431
ulonglong flags
Definition: sql_alter.h:429
Mem_root_array< const Alter_rename_key * > alter_rename_key_list
Definition: sql_alter.h:412
Alter_info_flag
Definition: sql_alter.h:216
@ ALTER_ADD_PARTITION
Set for ADD PARTITION.
Definition: sql_alter.h:255
@ ALTER_REORGANIZE_PARTITION
Set for REORGANIZE PARTITION ... INTO.
Definition: sql_alter.h:264
@ ALTER_ALL_PARTITION
Set for partitioning operations specifying ALL keyword.
Definition: sql_alter.h:280
@ ALTER_OPTIONS
Set for table_options.
Definition: sql_alter.h:241
Mem_root_array< const Alter_index_visibility * > alter_index_visibility_list
Indexes whose visibilities are to be changed.
Definition: sql_alter.h:415
Class which instances represent RENAME INDEX clauses in ALTER TABLE statement.
Definition: sql_alter.h:170
After parsing, a Common Table Expression is accessed through a Table_ref.
Definition: table.h:4428
Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:936
Represents a JSON container value of type "object" (ECMA), type J_OBJECT here.
Definition: json_dom.h:369
bool add_alias(const std::string &key, Json_dom *value)
Insert the value into the object.
Definition: json_dom.h:411
Column description for JSON_TABLE function.
Definition: table_function.h:236
Definition: key_spec.h:67
bool is_algorithm_explicit
A flag which indicates that index algorithm was explicitly specified by user.
Definition: key_spec.h:74
enum ha_key_alg algorithm
Definition: key_spec.h:69
Definition: sql_list.h:467
A typesafe replacement for DYNAMIC_ARRAY.
Definition: mem_root_array.h:61
size_t size() const
Definition: mem_root_array.h:407
void init_empty_const()
Initialize empty array that we aren't going to grow.
Definition: mem_root_array.h:84
A typesafe replacement for DYNAMIC_ARRAY.
Definition: mem_root_array.h:426
Definition: parse_tree_nodes.h:5067
List< String > * m_opt_partitions
Definition: parse_tree_nodes.h:5077
Table_ddl_node super
Definition: parse_tree_nodes.h:5068
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:3413
PT_adm_partition(const POS &pos, List< String > *opt_partitions)
Definition: parse_tree_nodes.h:5071
Top-level node for the ALTER INSTANCE statement.
Definition: parse_tree_nodes.h:2227
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:4610
PT_alter_instance(const POS &pos, enum alter_instance_action_enum alter_instance_action, const LEX_CSTRING &channel)
Definition: parse_tree_nodes.h:2231
Sql_cmd_alter_instance sql_cmd
Definition: parse_tree_nodes.h:2228
Parse tree node for ALTER RESOURCE GROUP statement.
Definition: parse_tree_nodes.h:5415
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:4917
PT_alter_resource_group(const POS &pos, const LEX_CSTRING &name, const Mem_root_array< resourcegroups::Range > *cpu_list, const Value_or_default< int > &opt_priority, const Value_or_default< bool > &enable, bool force)
Definition: parse_tree_nodes.h:5419
resourcegroups::Sql_cmd_alter_resource_group sql_cmd
Definition: parse_tree_nodes.h:5416
Definition: parse_tree_nodes.h:4044
PT_ddl_table_option super
Definition: parse_tree_nodes.h:4045
bool is_add_or_reorganize_partition() const
A routine used by the parser to decide whether we are specifying a full partitioning or if only parti...
Definition: parse_tree_nodes.h:4063
const Alter_info::Alter_info_flag flag
Definition: parse_tree_nodes.h:4069
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:4731
PT_alter_table_action(const POS &pos, Alter_info::Alter_info_flag flag)
Definition: parse_tree_nodes.h:4048
Definition: parse_tree_nodes.h:4072
PT_alter_table_action super
Definition: parse_tree_nodes.h:4073
PT_column_def m_column_def
Definition: parse_tree_nodes.h:4089
PT_alter_table_add_column(const POS &pos, const LEX_STRING &field_ident, PT_field_def_base *field_def, PT_table_constraint_def *opt_column_constraint, const char *opt_place)
Definition: parse_tree_nodes.h:4076
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4084
Definition: parse_tree_nodes.h:4092
const Mem_root_array< PT_table_element * > * m_columns
Definition: parse_tree_nodes.h:4110
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4100
PT_alter_table_action super
Definition: parse_tree_nodes.h:4093
PT_alter_table_add_columns(const POS &pos, const Mem_root_array< PT_table_element * > *columns)
Definition: parse_tree_nodes.h:4096
Definition: parse_tree_nodes.h:4113
PT_alter_table_action super
Definition: parse_tree_nodes.h:4114
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4121
PT_table_constraint_def * m_constraint
Definition: parse_tree_nodes.h:4126
PT_alter_table_add_constraint(const POS &pos, PT_table_constraint_def *constraint)
Definition: parse_tree_nodes.h:4117
Node for the ALTER TABLE ADD PARTITION (<partition list>) statement.
Definition: parse_tree_nodes.h:4478
PT_alter_table_add_partition super
Definition: parse_tree_nodes.h:4479
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:3152
const Mem_root_array< PT_part_definition * > * m_def_list
Definition: parse_tree_nodes.h:4490
PT_alter_table_add_partition_def_list(const POS &pos, bool no_write_to_binlog, const Mem_root_array< PT_part_definition * > *def_list)
Definition: parse_tree_nodes.h:4482
Node for the ALTER TABLE ADD PARTITION PARTITIONS (<n>@) statement.
Definition: parse_tree_nodes.h:4499
PT_alter_table_add_partition_num(const POS &pos, bool no_write_to_binlog, uint num_parts)
Definition: parse_tree_nodes.h:4503
PT_alter_table_add_partition super
Definition: parse_tree_nodes.h:4500
Node for the ALTER TABLE ADD PARTITION statement.
Definition: parse_tree_nodes.h:4451
PT_alter_table_add_partition(const POS &pos, bool no_write_to_binlog)
Definition: parse_tree_nodes.h:4455
const bool m_no_write_to_binlog
Definition: parse_tree_nodes.h:4469
partition_info m_part_info
Definition: parse_tree_nodes.h:4466
Sql_cmd * make_cmd(Table_ddl_parse_context *pc) final
Definition: parse_tree_nodes.h:4461
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:4785
PT_alter_table_standalone_action super
Definition: parse_tree_nodes.h:4452
Definition: parse_tree_nodes.h:4595
PT_alter_table_partition_list_or_all super
Definition: parse_tree_nodes.h:4596
Sql_cmd * make_cmd(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4605
PT_alter_table_analyze_partition(const POS &pos, bool no_write_to_binlog, const List< String > *opt_partition_list)
Definition: parse_tree_nodes.h:4599
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:4819
const bool m_no_write_to_binlog
Definition: parse_tree_nodes.h:4611
Definition: parse_tree_nodes.h:4129
const LEX_STRING m_old_name
Definition: parse_tree_nodes.h:4151
PT_alter_table_change_column(const POS &pos, const LEX_STRING &old_name, const LEX_STRING &new_name, PT_field_def_base *field_def, const char *opt_place)
Definition: parse_tree_nodes.h:4133
const LEX_STRING m_new_name
Definition: parse_tree_nodes.h:4152
const char * m_opt_place
Definition: parse_tree_nodes.h:4154
PT_field_def_base * m_field_def
Definition: parse_tree_nodes.h:4153
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:3064
PT_alter_table_change_column(const POS &pos, const LEX_STRING &name, PT_field_def_base *field_def, const char *opt_place)
Definition: parse_tree_nodes.h:4143
PT_alter_table_action super
Definition: parse_tree_nodes.h:4130
Definition: parse_tree_nodes.h:4615
PT_alter_table_check_partition(const POS &pos, const List< String > *opt_partition_list, uint flags, uint sql_flags)
Definition: parse_tree_nodes.h:4619
uint m_sql_flags
Definition: parse_tree_nodes.h:4635
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:4826
Sql_cmd * make_cmd(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4628
PT_alter_table_partition_list_or_all super
Definition: parse_tree_nodes.h:4616
uint m_flags
Definition: parse_tree_nodes.h:4634
Definition: parse_tree_nodes.h:4665
const bool m_no_write_to_binlog
Definition: parse_tree_nodes.h:4682
PT_alter_table_standalone_action super
Definition: parse_tree_nodes.h:4666
Sql_cmd * make_cmd(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4677
PT_alter_table_coalesce_partition(const POS &pos, bool no_write_to_binlog, uint num_parts)
Definition: parse_tree_nodes.h:4669
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:4849
const uint m_num_parts
Definition: parse_tree_nodes.h:4683
Definition: parse_tree_nodes.h:4289
Alter_column m_alter_column
Definition: parse_tree_nodes.h:4304
PT_alter_table_action super
Definition: parse_tree_nodes.h:4290
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4298
PT_alter_table_column_visibility(const POS &pos, const char *col_name, bool is_visible)
Definition: parse_tree_nodes.h:4293
Definition: parse_tree_nodes.h:4373
PT_alter_table_action super
Definition: parse_tree_nodes.h:4374
const CHARSET_INFO *const m_charset
Definition: parse_tree_nodes.h:4386
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:3120
const CHARSET_INFO *const m_collation
Definition: parse_tree_nodes.h:4387
PT_alter_table_convert_to_charset(const POS &pos, const CHARSET_INFO *charset, const CHARSET_INFO *opt_collation)
Definition: parse_tree_nodes.h:4377
Definition: parse_tree_nodes.h:4823
Sql_cmd * make_cmd(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4831
PT_alter_table_discard_partition_tablespace(const POS &pos, const List< String > *opt_partition_list)
Definition: parse_tree_nodes.h:4827
PT_alter_table_partition_list_or_all super
Definition: parse_tree_nodes.h:4824
Definition: parse_tree_nodes.h:4851
Sql_cmd * make_cmd(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4858
PT_alter_table_discard_tablespace(const POS &pos)
Definition: parse_tree_nodes.h:4855
PT_alter_table_standalone_action super
Definition: parse_tree_nodes.h:4852
Definition: parse_tree_nodes.h:4197
PT_alter_table_drop_check_constraint(const POS &pos, const char *name)
Definition: parse_tree_nodes.h:4199
Definition: parse_tree_nodes.h:4176
PT_alter_table_drop_column(const POS &pos, const char *name)
Definition: parse_tree_nodes.h:4178
Definition: parse_tree_nodes.h:4205
PT_alter_table_drop_constraint(const POS &pos, const char *name)
Definition: parse_tree_nodes.h:4207
Definition: parse_tree_nodes.h:4183
PT_alter_table_drop_foreign_key(const POS &pos, const char *name)
Definition: parse_tree_nodes.h:4185
Definition: parse_tree_nodes.h:4190
PT_alter_table_drop_key(const POS &pos, const char *name)
Definition: parse_tree_nodes.h:4192
Definition: parse_tree_nodes.h:4511
const List< String > m_partitions
Definition: parse_tree_nodes.h:4527
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:4796
PT_alter_table_drop_partition(const POS &pos, const List< String > &partitions)
Definition: parse_tree_nodes.h:4515
PT_alter_table_standalone_action super
Definition: parse_tree_nodes.h:4512
Sql_cmd * make_cmd(Table_ddl_parse_context *pc) final
Definition: parse_tree_nodes.h:4522
Definition: parse_tree_nodes.h:4157
PT_alter_table_action super
Definition: parse_tree_nodes.h:4158
PT_alter_table_drop(const POS &pos, Alter_drop::drop_type drop_type, Alter_info::Alter_info_flag alter_info_flag, const char *name)
Definition: parse_tree_nodes.h:4161
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4167
Alter_drop m_alter_drop
Definition: parse_tree_nodes.h:4173
Definition: parse_tree_nodes.h:4255
PT_alter_table_action super
Definition: parse_tree_nodes.h:4256
PT_alter_table_enable_keys(const POS &pos, bool enable)
Definition: parse_tree_nodes.h:4259
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4262
bool m_enable
Definition: parse_tree_nodes.h:4269
Definition: parse_tree_nodes.h:4243
PT_alter_table_enforce_check_constraint(const POS &pos, const char *name, bool is_enforced)
Definition: parse_tree_nodes.h:4245
Definition: parse_tree_nodes.h:4212
PT_alter_table_action super
Definition: parse_tree_nodes.h:4213
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4232
Alter_constraint_enforcement m_constraint_enforcement
Definition: parse_tree_nodes.h:4239
PT_alter_table_enforce_constraint(const POS &pos, const char *name, bool is_enforced)
Definition: parse_tree_nodes.h:4224
PT_alter_table_enforce_constraint(const POS &pos, Alter_constraint_enforcement::Type alter_type, Alter_info::Alter_info_flag alter_info_flag, const char *name, bool is_enforced)
Definition: parse_tree_nodes.h:4216
Definition: parse_tree_nodes.h:4756
PT_alter_table_exchange_partition(const POS &pos, const LEX_STRING &partition_name, Table_ident *table_name, Alter_info::enum_with_validation validation)
Definition: parse_tree_nodes.h:4760
Table_ident * m_table_name
Definition: parse_tree_nodes.h:4778
const Alter_info::enum_with_validation m_validation
Definition: parse_tree_nodes.h:4779
Sql_cmd * make_cmd(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4771
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:3187
PT_alter_table_standalone_action super
Definition: parse_tree_nodes.h:4757
const LEX_STRING m_partition_name
Definition: parse_tree_nodes.h:4777
Definition: parse_tree_nodes.h:4390
PT_alter_table_force(const POS &pos)
Definition: parse_tree_nodes.h:4394
PT_alter_table_action super
Definition: parse_tree_nodes.h:4391
Definition: parse_tree_nodes.h:4837
PT_alter_table_import_partition_tablespace(const POS &pos, const List< String > *opt_partition_list)
Definition: parse_tree_nodes.h:4841
Sql_cmd * make_cmd(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4845
PT_alter_table_partition_list_or_all super
Definition: parse_tree_nodes.h:4838
Definition: parse_tree_nodes.h:4864
PT_alter_table_standalone_action super
Definition: parse_tree_nodes.h:4865
Sql_cmd * make_cmd(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4871
PT_alter_table_import_tablespace(const POS &pos)
Definition: parse_tree_nodes.h:4868
Definition: parse_tree_nodes.h:4307
PT_alter_table_action super
Definition: parse_tree_nodes.h:4308
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4315
Alter_index_visibility m_alter_index_visibility
Definition: parse_tree_nodes.h:4322
PT_alter_table_index_visible(const POS &pos, const char *name, bool visible)
Definition: parse_tree_nodes.h:4311
Definition: parse_tree_nodes.h:4574
PT_alter_table_optimize_partition(const POS &pos, bool no_write_to_binlog, const List< String > *opt_partition_list)
Definition: parse_tree_nodes.h:4578
Sql_cmd * make_cmd(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4585
PT_alter_table_partition_list_or_all super
Definition: parse_tree_nodes.h:4575
const bool m_no_write_to_binlog
Definition: parse_tree_nodes.h:4591
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:4812
Definition: parse_tree_nodes.h:4398
PT_alter_table_action super
Definition: parse_tree_nodes.h:4399
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:4771
PT_alter_table_order(const POS &pos, PT_order_list *order)
Definition: parse_tree_nodes.h:4402
PT_order_list *const m_order
Definition: parse_tree_nodes.h:4408
Definition: parse_tree_nodes.h:4411
PT_alter_table_action super
Definition: parse_tree_nodes.h:4412
PT_partition *const m_partition
Definition: parse_tree_nodes.h:4421
PT_alter_table_partition_by(const POS &pos, PT_partition *partition)
Definition: parse_tree_nodes.h:4415
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:4777
Definition: parse_tree_nodes.h:4531
PT_alter_table_partition_list_or_all(const POS &pos, Alter_info::Alter_info_flag alter_info_flag, const List< String > *opt_partition_list)
Definition: parse_tree_nodes.h:4535
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4540
const List< String > * m_opt_partition_list
Definition: parse_tree_nodes.h:4550
PT_alter_table_standalone_action super
Definition: parse_tree_nodes.h:4532
Definition: parse_tree_nodes.h:4554
Sql_cmd * make_cmd(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4565
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:4805
PT_alter_table_partition_list_or_all super
Definition: parse_tree_nodes.h:4555
PT_alter_table_rebuild_partition(const POS &pos, bool no_write_to_binlog, const List< String > *opt_partition_list)
Definition: parse_tree_nodes.h:4558
const bool m_no_write_to_binlog
Definition: parse_tree_nodes.h:4570
Definition: parse_tree_nodes.h:4424
PT_alter_table_action super
Definition: parse_tree_nodes.h:4425
PT_alter_table_remove_partitioning(const POS &pos)
Definition: parse_tree_nodes.h:4428
Definition: parse_tree_nodes.h:4356
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4364
PT_alter_table_action super
Definition: parse_tree_nodes.h:4357
PT_alter_table_rename_column(const POS &pos, const char *from, const char *to)
Definition: parse_tree_nodes.h:4360
Alter_column m_rename_column
Definition: parse_tree_nodes.h:4370
Definition: parse_tree_nodes.h:4340
PT_alter_table_rename_key(const POS &pos, const char *from, const char *to)
Definition: parse_tree_nodes.h:4344
Alter_rename_key m_rename_key
Definition: parse_tree_nodes.h:4353
PT_alter_table_action super
Definition: parse_tree_nodes.h:4341
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4347
Definition: parse_tree_nodes.h:4325
PT_alter_table_rename(const POS &pos, const Table_ident *ident)
Definition: parse_tree_nodes.h:4329
const Table_ident *const m_ident
Definition: parse_tree_nodes.h:4337
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:3094
bool is_rename_table() const override
Definition: parse_tree_nodes.h:4334
PT_alter_table_action super
Definition: parse_tree_nodes.h:4326
Definition: parse_tree_nodes.h:4729
const Mem_root_array< PT_part_definition * > * m_into
Definition: parse_tree_nodes.h:4751
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:3166
partition_info m_partition_info
Definition: parse_tree_nodes.h:4752
PT_alter_table_reorganize_partition_into(const POS &pos, bool no_write_to_binlog, const List< String > &partition_names, const Mem_root_array< PT_part_definition * > *into)
Definition: parse_tree_nodes.h:4733
const List< String > m_partition_names
Definition: parse_tree_nodes.h:4750
PT_alter_table_standalone_action super
Definition: parse_tree_nodes.h:4730
const bool m_no_write_to_binlog
Definition: parse_tree_nodes.h:4749
Sql_cmd * make_cmd(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4744
Definition: parse_tree_nodes.h:4708
partition_info m_partition_info
Definition: parse_tree_nodes.h:4725
Sql_cmd * make_cmd(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4719
const bool m_no_write_to_binlog
Definition: parse_tree_nodes.h:4724
PT_alter_table_standalone_action super
Definition: parse_tree_nodes.h:4709
PT_alter_table_reorganize_partition(const POS &pos, bool no_write_to_binlog)
Definition: parse_tree_nodes.h:4712
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:4864
Definition: parse_tree_nodes.h:4639
uint m_flags
Definition: parse_tree_nodes.h:4660
PT_alter_table_partition_list_or_all super
Definition: parse_tree_nodes.h:4640
const bool m_no_write_to_binlog
Definition: parse_tree_nodes.h:4659
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:4836
uint m_sql_flags
Definition: parse_tree_nodes.h:4661
PT_alter_table_repair_partition(const POS &pos, bool no_write_to_binlog, const List< String > *opt_partition_list, uint flags, uint sql_flags)
Definition: parse_tree_nodes.h:4643
Sql_cmd * make_cmd(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4653
Definition: parse_tree_nodes.h:4783
PT_alter_table_secondary_load(const POS &pos, const List< String > *opt_use_partition=nullptr)
Definition: parse_tree_nodes.h:4789
Sql_cmd * make_cmd(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4794
const List< String > * opt_use_partition
Definition: parse_tree_nodes.h:4786
Definition: parse_tree_nodes.h:4803
PT_alter_table_secondary_unload(const POS &pos, const List< String > *opt_use_partition=nullptr)
Definition: parse_tree_nodes.h:4809
const List< String > * opt_use_partition
Definition: parse_tree_nodes.h:4806
Sql_cmd * make_cmd(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4814
Definition: parse_tree_nodes.h:4272
Item * m_expr
Definition: parse_tree_nodes.h:4286
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:4737
const char * m_name
Definition: parse_tree_nodes.h:4285
PT_alter_table_action super
Definition: parse_tree_nodes.h:4273
PT_alter_table_set_default(const POS &pos, const char *col_name, Item *opt_default_expr)
Definition: parse_tree_nodes.h:4276
Definition: parse_tree_nodes.h:4432
PT_alter_table_action super
Definition: parse_tree_nodes.h:4433
PT_alter_table_standalone_action(const POS &pos, Alter_info::Alter_info_flag alter_info_flag)
Definition: parse_tree_nodes.h:4438
virtual Sql_cmd * make_cmd(Table_ddl_parse_context *pc)=0
Definition: parse_tree_nodes.h:4903
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:3282
const Alter_info::enum_alter_table_algorithm m_algo
Definition: parse_tree_nodes.h:4923
const Alter_info::enum_alter_table_lock m_lock
Definition: parse_tree_nodes.h:4924
PT_alter_table_standalone_stmt(const POS &pos, MEM_ROOT *mem_root, Table_ident *table_name, PT_alter_table_standalone_action *action, Alter_info::enum_alter_table_algorithm algo, Alter_info::enum_alter_table_lock lock, Alter_info::enum_with_validation validation)
Definition: parse_tree_nodes.h:4905
Table_ident *const m_table_name
Definition: parse_tree_nodes.h:4921
PT_alter_table_standalone_action *const m_action
Definition: parse_tree_nodes.h:4922
const Alter_info::enum_with_validation m_validation
Definition: parse_tree_nodes.h:4925
HA_CREATE_INFO m_create_info
Definition: parse_tree_nodes.h:4927
Definition: parse_tree_nodes.h:4876
const Alter_info::enum_alter_table_lock m_lock
Definition: parse_tree_nodes.h:4897
const Alter_info::enum_with_validation m_validation
Definition: parse_tree_nodes.h:4898
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:3244
Mem_root_array< PT_ddl_table_option * > *const m_opt_actions
Definition: parse_tree_nodes.h:4895
HA_CREATE_INFO m_create_info
Definition: parse_tree_nodes.h:4900
const Alter_info::enum_alter_table_algorithm m_algo
Definition: parse_tree_nodes.h:4896
Table_ident *const m_table_name
Definition: parse_tree_nodes.h:4894
PT_alter_table_stmt(const POS &pos, MEM_ROOT *mem_root, Table_ident *table_name, Mem_root_array< PT_ddl_table_option * > *opt_actions, Alter_info::enum_alter_table_algorithm algo, Alter_info::enum_alter_table_lock lock, Alter_info::enum_with_validation validation)
Definition: parse_tree_nodes.h:4878
Definition: parse_tree_nodes.h:4687
PT_alter_table_partition_list_or_all super
Definition: parse_tree_nodes.h:4688
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:4858
Sql_cmd * make_cmd(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:4701
PT_alter_table_truncate_partition(const POS &pos, const List< String > *opt_partition_list)
Definition: parse_tree_nodes.h:4691
Definition: parse_tree_nodes.h:5338
PT_alter_tablespace_option_engine(const POS &pos, option_type engine_name)
Definition: parse_tree_nodes.h:5343
bool do_contextualize(Alter_tablespace_parse_context *pc) override
Definition: parse_tree_nodes.h:5347
PT_alter_tablespace_option_base super
Definition: parse_tree_nodes.h:5339
decltype(Tablespace_options::engine_name) option_type
Definition: parse_tree_nodes.h:5340
const option_type m_engine_name
Definition: parse_tree_nodes.h:5360
Definition: parse_tree_nodes.h:5365
PT_alter_tablespace_option_file_block_size(const POS &pos, option_type file_block_size)
Definition: parse_tree_nodes.h:5370
const option_type m_file_block_size
Definition: parse_tree_nodes.h:5387
bool do_contextualize(Alter_tablespace_parse_context *pc) override
Definition: parse_tree_nodes.h:5374
decltype(Tablespace_options::file_block_size) option_type
Definition: parse_tree_nodes.h:5367
PT_alter_tablespace_option_base super
Definition: parse_tree_nodes.h:5366
Definition: parse_tree_nodes.h:5294
const option_type m_nodegroup_id
Definition: parse_tree_nodes.h:5306
PT_alter_tablespace_option_nodegroup(const POS &pos, option_type nodegroup_id)
Definition: parse_tree_nodes.h:5299
bool do_contextualize(Alter_tablespace_parse_context *pc) override
Definition: parse_tree_nodes.cc:4886
PT_alter_tablespace_option_base super
Definition: parse_tree_nodes.h:5295
decltype(Tablespace_options::nodegroup_id) option_type
Definition: parse_tree_nodes.h:5296
Definition: parse_tree_nodes.h:5240
const Option_type m_value
Definition: parse_tree_nodes.h:5253
PT_alter_tablespace_option_base super
Definition: parse_tree_nodes.h:5241
bool do_contextualize(Alter_tablespace_parse_context *pc) override
Definition: parse_tree_nodes.h:5247
PT_alter_tablespace_option(const POS &pos, Option_type value)
Definition: parse_tree_nodes.h:5244
Definition: parse_tree_nodes.h:3271
Sql_cmd_alter_user_default_role sql_cmd
Definition: parse_tree_nodes.h:3272
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:4698
PT_alter_user_default_role(const POS &pos, bool if_exists, const List< LEX_USER > *users, const List< LEX_USER > *roles, const role_enum role_type)
Definition: parse_tree_nodes.h:3275
Definition: parse_tree_nodes.h:4952
const Sql_cmd_analyze_table::Histogram_command m_command
Definition: parse_tree_nodes.h:4974
PT_analyze_table_stmt(const POS &pos, MEM_ROOT *mem_root, bool no_write_to_binlog, Mem_root_array< Table_ident * > *table_list, Sql_cmd_analyze_table::Histogram_command command, int num_buckets, List< String > *columns, LEX_STRING data, bool auto_update)
Definition: parse_tree_nodes.h:4954
const int m_num_buckets
Definition: parse_tree_nodes.h:4975
const LEX_STRING m_data
Definition: parse_tree_nodes.h:4977
const bool m_auto_update
Definition: parse_tree_nodes.h:4978
const Mem_root_array< Table_ident * > * m_table_list
Definition: parse_tree_nodes.h:4973
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:3315
List< String > * m_columns
Definition: parse_tree_nodes.h:4976
const bool m_no_write_to_binlog
Definition: parse_tree_nodes.h:4972
Definition: parse_tree_nodes.h:5052
List< Index_hint > * m_index_hints
Definition: parse_tree_nodes.h:5064
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:3404
Table_ddl_node super
Definition: parse_tree_nodes.h:5053
PT_assign_to_keycache(const POS &pos, Table_ident *table, List< Index_hint > *index_hints)
Definition: parse_tree_nodes.h:5056
Table_ident * m_table
Definition: parse_tree_nodes.h:5063
A template-free base class for index options that we can predeclare in sql_lex.h.
Definition: parse_tree_nodes.h:2243
PT_base_index_option(const POS &pos)
Definition: parse_tree_nodes.h:2245
A template for options that set HA_CREATE_INFO::table_options and also records if the option was expl...
Definition: parse_tree_nodes.h:2787
PT_create_table_option super
Definition: parse_tree_nodes.h:2788
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:2796
const bool value
Definition: parse_tree_nodes.h:2790
PT_bool_create_table_option(const POS &pos, bool value)
Definition: parse_tree_nodes.h:2793
Parse tree node for a single of a window extent's borders, cf.
Definition: parse_tree_nodes.h:1377
Item * build_addop(Item_cache *order_expr, bool prec, bool asc, const Window *window)
Definition: parse_tree_nodes.cc:3489
PT_border(const POS &pos, enum_window_border_type type, Item *value)
For bounded INTERVAL 2 DAYS, 'value' is 2, int_type is DAYS.
Definition: parse_tree_nodes.h:1392
PT_border(const POS &pos, enum_window_border_type type)
< For unbounded border
Definition: parse_tree_nodes.h:1386
Item * m_value
only relevant iff m_border_type == WBT_VALUE_*
Definition: parse_tree_nodes.h:1379
Item ** border_ptr()
Need such low-level access so that fix_fields updates the right pointer.
Definition: parse_tree_nodes.h:1410
interval_type m_int_type
Definition: parse_tree_nodes.h:1383
PT_border(const POS &pos, enum_window_border_type type, Item *value, interval_type int_type)
Definition: parse_tree_nodes.h:1399
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_window.cc:68
enum_window_border_type m_border_type
Definition: parse_tree_nodes.h:1381
const bool m_date_time
Definition: parse_tree_nodes.h:1382
Item * border() const
Definition: parse_tree_nodes.h:1408
Parse tree node for one or both of a window extent's borders, cf.
Definition: parse_tree_nodes.h:1429
PT_borders(const POS &pos, PT_border *start, PT_border *end)
Constructor.
Definition: parse_tree_nodes.h:1441
PT_border * m_borders[2]
Definition: parse_tree_nodes.h:1430
Definition: parse_tree_nodes.h:5096
List< Index_hint > * m_opt_key_usage_list
Definition: parse_tree_nodes.h:5114
PT_cache_index_partitions_stmt(const POS &pos, MEM_ROOT *mem_root, Table_ident *table, PT_adm_partition *partitions, List< Index_hint > *opt_key_usage_list, LEX_CSTRING key_cache_name)
Definition: parse_tree_nodes.h:5098
Table_ident * m_table
Definition: parse_tree_nodes.h:5112
PT_adm_partition * m_partitions
Definition: parse_tree_nodes.h:5113
const LEX_CSTRING m_key_cache_name
Definition: parse_tree_nodes.h:5115
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:3438
Definition: parse_tree_nodes.h:5080
const LEX_CSTRING m_key_cache_name
Definition: parse_tree_nodes.h:5093
Mem_root_array< PT_assign_to_keycache * > * m_tbl_index_lists
Definition: parse_tree_nodes.h:5092
PT_cache_index_stmt(const POS &pos, MEM_ROOT *mem_root, Mem_root_array< PT_assign_to_keycache * > *tbl_index_lists, LEX_CSTRING key_cache_name)
Definition: parse_tree_nodes.h:5082
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:3424
Definition: parse_tree_nodes.h:2124
PT_item_list * opt_expr_list
Definition: parse_tree_nodes.h:2126
sp_name * proc_name
Definition: parse_tree_nodes.h:2125
PT_call(const POS &pos, sp_name *proc_name_arg, PT_item_list *opt_expr_list_arg)
Definition: parse_tree_nodes.h:2129
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:1208
Definition: parse_tree_nodes.h:2996
void set_column_name(const LEX_STRING &name)
Definition: parse_tree_nodes.h:3008
PT_table_constraint_def super
Definition: parse_tree_nodes.h:2997
PT_check_constraint(const POS &pos, LEX_STRING &name, Item *expr, bool is_enforced)
Definition: parse_tree_nodes.h:3001
Sql_check_constraint_spec cc_spec
Definition: parse_tree_nodes.h:2998
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:4615
Definition: parse_tree_nodes.h:4981
PT_check_table_stmt(const POS &pos, MEM_ROOT *mem_root, Mem_root_array< Table_ident * > *table_list, decltype(HA_CHECK_OPT::flags) flags, decltype(HA_CHECK_OPT::sql_flags) sql_flags)
Definition: parse_tree_nodes.h:4983
Mem_root_array< Table_ident * > * m_table_list
Definition: parse_tree_nodes.h:4995
decltype(HA_CHECK_OPT::flags) m_flags
Definition: parse_tree_nodes.h:4996
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:3337
decltype(HA_CHECK_OPT::sql_flags) m_sql_flags
Definition: parse_tree_nodes.h:4997
Base class for all column attributes in CREATE/ALTER TABLE
Definition: parse_tree_column_attrs.h:85
Definition: parse_tree_nodes.h:3013
PT_table_element super
Definition: parse_tree_nodes.h:3014
PT_column_def(const POS &pos, const LEX_STRING &field_ident, PT_field_def_base *field_def, PT_table_constraint_def *opt_column_constraint, const char *opt_place=nullptr)
Definition: parse_tree_nodes.h:3024
const LEX_STRING field_ident
Definition: parse_tree_nodes.h:3016
PT_field_def_base * field_def
Definition: parse_tree_nodes.h:3017
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:2307
const char * opt_place
Definition: parse_tree_nodes.h:3021
PT_table_constraint_def * opt_column_constraint
Definition: parse_tree_nodes.h:3019
Represents an element of the WITH list: WITH [...], [...] SELECT ..., ^ or ^ i.e.
Definition: parse_tree_nodes.h:275
const LEX_STRING m_subq_text
Raw text of query expression (including parentheses)
Definition: parse_tree_nodes.h:315
const Create_col_name_list m_column_names
List of explicitly specified column names; if empty, no list.
Definition: parse_tree_nodes.h:324
Parse_tree_node super
Definition: parse_tree_nodes.h:276
void add_json_info(Json_object *obj) override
Add all the node-specific json fields.
Definition: parse_tree_nodes.cc:2065
bool is(const Common_table_expr *other) const
Definition: parse_tree_nodes.h:303
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:2056
PT_subquery *const m_subq_node
Parsed version of subq_text.
Definition: parse_tree_nodes.h:322
PT_common_table_expr(const POS &pos, const LEX_STRING &name, const LEX_STRING &subq_text, uint subq_text_offset, PT_subquery *sn, const Create_col_name_list *column_names, MEM_ROOT *mem_root)
Definition: parse_tree_nodes.cc:2038
uint m_subq_text_offset
Offset in bytes of m_subq_text in original statement which had the WITH clause.
Definition: parse_tree_nodes.h:320
void print(const THD *thd, String *str, enum_query_type query_type)
Definition: parse_tree_nodes.cc:2107
const LEX_STRING & name() const
The name after AS.
Definition: parse_tree_nodes.h:286
Common_table_expr m_postparse
A Table_ref representing a CTE needs access to the WITH list element it derives from.
Definition: parse_tree_nodes.h:334
LEX_STRING m_name
Definition: parse_tree_nodes.h:313
Definition: parse_tree_nodes.h:2428
PT_create_index_stmt(const POS &pos, MEM_ROOT *mem_root, keytype type_par, const LEX_STRING &name_arg, PT_base_index_option *type, Table_ident *table_ident, List< PT_key_part_specification > *cols, Index_options options, Alter_info::enum_alter_table_algorithm algo, Alter_info::enum_alter_table_lock lock)
Definition: parse_tree_nodes.h:2430
keytype m_keytype
Definition: parse_tree_nodes.h:2450
Index_options m_options
Definition: parse_tree_nodes.h:2455
Table_ident * m_table_ident
Definition: parse_tree_nodes.h:2453
LEX_STRING m_name
Definition: parse_tree_nodes.h:2451
const Alter_info::enum_alter_table_algorithm m_algo
Definition: parse_tree_nodes.h:2456
List< PT_key_part_specification > * m_columns
Definition: parse_tree_nodes.h:2454
const Alter_info::enum_alter_table_lock m_lock
Definition: parse_tree_nodes.h:2457
PT_base_index_option * m_type
Definition: parse_tree_nodes.h:2452
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:1873
Parse tree node for CREATE RESOURCE GROUP statement.
Definition: parse_tree_nodes.h:5394
resourcegroups::Sql_cmd_create_resource_group sql_cmd
Definition: parse_tree_nodes.h:5395
PT_create_resource_group(const POS &pos, const LEX_CSTRING &name, const resourcegroups::Type type, const Mem_root_array< resourcegroups::Range > *cpu_list, const Value_or_default< int > &opt_priority, bool enabled)
Definition: parse_tree_nodes.h:5399
const bool has_priority
Definition: parse_tree_nodes.h:5396
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:4898
Definition: parse_tree_nodes.h:3117
PT_create_role(const POS &pos, bool if_not_exists, const List< LEX_USER > *roles)
Definition: parse_tree_nodes.h:3121
Sql_cmd_create_role sql_cmd
Definition: parse_tree_nodes.h:3118
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:4627
Top-level node for the CREATE [OR REPLACE] SPATIAL REFERENCE SYSTEM statement.
Definition: parse_tree_nodes.h:2155
bool contains_control_char(char *str, size_t length)
Check if a UTF-8 string contains control characters.
Definition: parse_tree_nodes.h:2181
PT_create_srs(const POS &pos, unsigned long long srid, const Sql_cmd_srs_attributes &attributes, bool or_replace, bool if_not_exists)
Definition: parse_tree_nodes.h:2189
const Sql_cmd_srs_attributes m_attributes
All attributes except SRID.
Definition: parse_tree_nodes.h:2168
unsigned long long m_srid
SRID of the SRS to create.
Definition: parse_tree_nodes.h:2166
bool m_or_replace
Whether OR REPLACE is specified.
Definition: parse_tree_nodes.h:2159
Sql_cmd_create_srs sql_cmd
The SQL command object.
Definition: parse_tree_nodes.h:2157
bool m_if_not_exists
Whether IF NOT EXISTS is specified.
Definition: parse_tree_nodes.h:2161
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:4458
Node for the STATS_AUTO_RECALC [=] <0|1|DEFAULT>) table option.
Definition: parse_tree_nodes.h:2885
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:2164
const Ternary_option value
Definition: parse_tree_nodes.h:2888
PT_create_stats_auto_recalc_option(const POS &pos, Ternary_option value)
Definition: parse_tree_nodes.h:2900
PT_create_table_option super
Definition: parse_tree_nodes.h:2886
Node for the STATS_SAMPLE_PAGES [=] <integer>|DEFAULT table option.
Definition: parse_tree_nodes.h:2911
const value_t value
Definition: parse_tree_nodes.h:2915
PT_create_stats_stable_pages(const POS &pos, value_t value)
Constructor for implicit number of pages.
Definition: parse_tree_nodes.h:2924
PT_create_table_option super
Definition: parse_tree_nodes.h:2912
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:2185
decltype(HA_CREATE_INFO::stats_sample_pages) value_t
Definition: parse_tree_nodes.h:2913
PT_create_stats_stable_pages(const POS &pos)
Constructor for the DEFAULT number of pages.
Definition: parse_tree_nodes.h:2931
Definition: parse_tree_nodes.h:2950
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:2959
const ha_storage_media value
Definition: parse_tree_nodes.h:2953
PT_create_storage_option(const POS &pos, ha_storage_media value)
Definition: parse_tree_nodes.h:2956
PT_create_table_option super
Definition: parse_tree_nodes.h:2951
Definition: parse_tree_nodes.h:2966
const CHARSET_INFO * value
Definition: parse_tree_nodes.h:2969
PT_create_table_default_charset(const POS &pos, const CHARSET_INFO *value)
Definition: parse_tree_nodes.h:2972
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:2244
PT_create_table_option super
Definition: parse_tree_nodes.h:2967
Definition: parse_tree_nodes.h:2981
PT_create_table_default_collation(const POS &pos, const CHARSET_INFO *value)
Definition: parse_tree_nodes.h:2987
const CHARSET_INFO * value
Definition: parse_tree_nodes.h:2984
PT_create_table_option super
Definition: parse_tree_nodes.h:2982
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:2265
Node for the ENGINE [=] <identifier>|<string> table option.
Definition: parse_tree_nodes.h:2841
const LEX_CSTRING engine
Definition: parse_tree_nodes.h:2844
PT_create_table_engine_option(const POS &pos, const LEX_CSTRING &engine)
Definition: parse_tree_nodes.h:2851
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:2145
PT_create_table_option super
Definition: parse_tree_nodes.h:2842
Base class for CREATE TABLE option nodes.
Definition: parse_tree_nodes.h:2557
PT_ddl_table_option super
Definition: parse_tree_nodes.h:2558
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:2566
~PT_create_table_option() override=0
PT_create_table_option(const POS &pos)
Definition: parse_tree_nodes.h:2561
Node for the SECONDARY_ENGINE [=] <identifier>|<string>|NULL table option.
Definition: parse_tree_nodes.h:2864
PT_create_table_secondary_engine_option(const POS &pos, const LEX_CSTRING &secondary_engine)
Definition: parse_tree_nodes.h:2870
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:2155
const LEX_CSTRING m_secondary_engine
Definition: parse_tree_nodes.h:2877
PT_create_table_secondary_engine_option(const POS &pos)
Definition: parse_tree_nodes.h:2868
Top-level node for the CREATE TABLE statement.
Definition: parse_tree_nodes.h:3042
On_duplicate on_duplicate
Definition: parse_tree_nodes.h:3049
PT_partition * opt_partitioning
Definition: parse_tree_nodes.h:3048
const Mem_root_array< PT_table_element * > * opt_table_element_list
Definition: parse_tree_nodes.h:3046
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2337
bool is_temporary
Definition: parse_tree_nodes.h:3043
const Mem_root_array< PT_create_table_option * > * opt_create_table_options
Definition: parse_tree_nodes.h:3047
PT_query_expression_body * opt_query_expression
Definition: parse_tree_nodes.h:3050
bool only_if_not_exists
Definition: parse_tree_nodes.h:3044
PT_create_table_stmt(const POS &pos, MEM_ROOT *mem_root, bool is_temporary, bool only_if_not_exists, Table_ident *table_name, const Mem_root_array< PT_table_element * > *opt_table_element_list, const Mem_root_array< PT_create_table_option * > *opt_create_table_options, PT_partition *opt_partitioning, On_duplicate on_duplicate, PT_query_expression_body *opt_query_expression)
Definition: parse_tree_nodes.h:3075
Table_ident * table_name
Definition: parse_tree_nodes.h:3045
Table_ident * opt_like_clause
Definition: parse_tree_nodes.h:3051
PT_create_table_stmt(const POS &pos, MEM_ROOT *mem_root, bool is_temporary, bool only_if_not_exists, Table_ident *table_name, Table_ident *opt_like_clause)
Definition: parse_tree_nodes.h:3100
HA_CREATE_INFO m_create_info
Definition: parse_tree_nodes.h:3053
Definition: parse_tree_nodes.h:2937
const Mem_root_array< Table_ident * > * tables
Definition: parse_tree_nodes.h:2940
PT_create_union_option(const POS &pos, const Mem_root_array< Table_ident * > *tables)
Definition: parse_tree_nodes.h:2943
PT_create_table_option super
Definition: parse_tree_nodes.h:2938
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:2194
Definition: parse_tree_nodes.h:636
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:3964
PT_joined_table super
Definition: parse_tree_nodes.h:637
PT_cross_join(const POS &pos, PT_table_reference *tab1_node_arg, const POS &join_pos_arg, PT_joined_table_type Type_arg, PT_table_reference *tab2_node_arg)
Definition: parse_tree_nodes.h:640
Common base class for CREATE TABLE and ALTER TABLE option nodes.
Definition: parse_tree_nodes.h:2540
PT_ddl_table_option(const POS &pos)
Definition: parse_tree_nodes.h:2542
~PT_ddl_table_option() override=0
virtual bool is_rename_table() const
Definition: parse_tree_nodes.h:2547
Top-level node for the DELETE statement.
Definition: parse_tree_nodes.h:1925
bool add_table(Parse_context *pc, Table_ident *table)
Definition: parse_tree_nodes.cc:897
bool is_multitable() const
Definition: parse_tree_nodes.h:1986
Item * opt_where_clause
Definition: parse_tree_nodes.h:1937
Mem_root_array_YY< Table_ident * > table_list
Definition: parse_tree_nodes.h:1934
PT_delete(const POS &pos, PT_with_clause *with_clause_arg, PT_hint_list *opt_hints_arg, int opt_delete_options_arg, Table_ident *table_ident_arg, const LEX_CSTRING &opt_table_alias_arg, List< String > *opt_use_partition_arg, Item *opt_where_clause_arg, PT_order *opt_order_clause_arg, Item *opt_delete_limit_clause_arg)
Definition: parse_tree_nodes.h:1944
SQL_I_List< Table_ref > delete_tables
Definition: parse_tree_nodes.h:1940
Item * opt_delete_limit_clause
Definition: parse_tree_nodes.h:1939
Mem_root_array_YY< PT_table_reference * > join_table_list
Definition: parse_tree_nodes.h:1936
Table_ident * table_ident
Definition: parse_tree_nodes.h:1932
PT_delete(const POS &pos, PT_with_clause *with_clause_arg, PT_hint_list *opt_hints_arg, int opt_delete_options_arg, const Mem_root_array_YY< Table_ident * > &table_list_arg, const Mem_root_array_YY< PT_table_reference * > &join_table_list_arg, Item *opt_where_clause_arg)
Definition: parse_tree_nodes.h:1965
PT_with_clause * m_with_clause
Definition: parse_tree_nodes.h:1929
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:912
const int opt_delete_options
Definition: parse_tree_nodes.h:1931
Parse_tree_root super
Definition: parse_tree_nodes.h:1926
PT_order * opt_order_clause
Definition: parse_tree_nodes.h:1938
PT_hint_list * opt_hints
Definition: parse_tree_nodes.h:1930
const char *const opt_table_alias
Definition: parse_tree_nodes.h:1933
List< String > * opt_use_partition
Definition: parse_tree_nodes.h:1935
Definition: parse_tree_nodes.h:542
void add_json_info(Json_object *obj) override
Add all the node-specific json fields.
Definition: parse_tree_nodes.cc:1452
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:1407
PT_subquery * m_subquery
Definition: parse_tree_nodes.h:557
const char *const m_table_alias
Definition: parse_tree_nodes.h:558
PT_table_reference super
Definition: parse_tree_nodes.h:543
PT_derived_table(const POS &pos, bool lateral, PT_subquery *subquery, const LEX_CSTRING &table_alias, Create_col_name_list *column_names)
Definition: parse_tree_nodes.cc:1395
bool m_lateral
Definition: parse_tree_nodes.h:556
const Create_col_name_list column_names
List of explicitly specified column names; if empty, no list.
Definition: parse_tree_nodes.h:560
Definition: parse_tree_nodes.h:5015
Alter_drop m_alter_drop
Definition: parse_tree_nodes.h:5036
Alter_info::enum_alter_table_algorithm m_algo
Definition: parse_tree_nodes.h:5033
const char * m_index_name
Definition: parse_tree_nodes.h:5031
Alter_info::enum_alter_table_lock m_lock
Definition: parse_tree_nodes.h:5034
PT_drop_index_stmt(const POS &pos, MEM_ROOT *mem_root, const char *index_name, Table_ident *table, Alter_info::enum_alter_table_algorithm algo, Alter_info::enum_alter_table_lock lock)
Definition: parse_tree_nodes.h:5017
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:3373
Table_ident * m_table
Definition: parse_tree_nodes.h:5032
Parse tree node for DROP RESOURCE GROUP statement.
Definition: parse_tree_nodes.h:5436
PT_drop_resource_group(const POS &pos, const LEX_CSTRING &resource_group_name, bool force)
Definition: parse_tree_nodes.h:5440
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:4931
resourcegroups::Sql_cmd_drop_resource_group sql_cmd
Definition: parse_tree_nodes.h:5437
Definition: parse_tree_nodes.h:3128
Sql_cmd_drop_role sql_cmd
Definition: parse_tree_nodes.h:3129
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:4632
PT_drop_role(const POS &pos, bool ignore_errors, const List< LEX_USER > *roles)
Definition: parse_tree_nodes.h:3132
Top-level node for the DROP SPATIAL REFERENCE SYSTEM statement.
Definition: parse_tree_nodes.h:2206
Sql_cmd_drop_srs sql_cmd
The SQL command object.
Definition: parse_tree_nodes.h:2208
PT_drop_srs(const POS &pos, unsigned long long srid, bool if_exists)
Definition: parse_tree_nodes.h:2216
unsigned long long m_srid
SRID of the SRS to drop.
Definition: parse_tree_nodes.h:2213
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:4594
Definition: parse_tree_nodes.h:3231
Privilege * get_privilege(THD *thd) override
Definition: parse_tree_nodes.cc:4668
LEX_STRING ident
Definition: parse_tree_nodes.h:3232
PT_dynamic_privilege(const POS &pos, const POS &errpos, const LEX_STRING &ident)
Definition: parse_tree_nodes.h:3235
Definition: parse_tree_nodes.h:1855
enum Setop_type type() const override
Definition: parse_tree_nodes.h:1861
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:1813
PT_set_operation(const POS &pos, PT_query_expression_body *lhs, bool is_distinct, PT_query_expression_body *rhs, bool is_rhs_in_parentheses=false)
Definition: parse_tree_nodes.h:1798
Parse tree node for a window frame's exclusions, cf.
Definition: parse_tree_nodes.h:1452
enum_window_frame_exclusion m_exclusion
Definition: parse_tree_nodes.h:1453
PT_exclusion(const POS &pos, enum_window_frame_exclusion e)
Definition: parse_tree_nodes.h:1456
Definition: parse_tree_nodes.h:5462
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:3629
PT_explain_for_connection(const POS &pos, my_thread_id thread_id)
Definition: parse_tree_nodes.h:5464
Sql_cmd_explain_other_thread m_cmd
Definition: parse_tree_nodes.h:5470
Definition: parse_tree_nodes.h:5473
PT_explain(const POS &pos, Explain_format_type format, bool is_analyze, bool is_explicit_format, Parse_tree_root *explainable_stmt, std::optional< std::string_view > explain_into_variable_name, LEX_CSTRING schema_name_for_explain)
Definition: parse_tree_nodes.h:5475
const bool m_analyze
Definition: parse_tree_nodes.h:5491
LEX_CSTRING m_schema_name_for_explain
Definition: parse_tree_nodes.h:5495
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:3648
const bool m_explicit_format
Definition: parse_tree_nodes.h:5492
std::optional< std::string_view > m_explain_into_variable_name
Definition: parse_tree_nodes.h:5494
Parse_tree_root *const m_explainable_stmt
Definition: parse_tree_nodes.h:5493
const Explain_format_type m_format
Definition: parse_tree_nodes.h:5490
Definition: parse_tree_nodes.h:1615
PT_explicit_table(const POS &pos, const Query_options &options_arg, PT_item_list *item_list_arg, const Mem_root_array_YY< PT_table_reference * > &from_clause_arg)
Definition: parse_tree_nodes.h:1619
Base class for both generated and regular column definitions.
Definition: parse_tree_column_attrs.h:903
Definition: parse_tree_nodes.h:2501
List< Key_part_spec > * m_ref_list
Definition: parse_tree_nodes.h:2529
fk_option m_fk_delete_opt
Definition: parse_tree_nodes.h:2532
PT_foreign_key_definition(const POS &pos, const LEX_STRING &constraint_name, const LEX_STRING &key_name, List< PT_key_part_specification > *columns, Table_ident *referenced_table, List< Key_part_spec > *ref_list, fk_match_opt fk_match_option, fk_option fk_update_opt, fk_option fk_delete_opt)
Definition: parse_tree_nodes.h:2505
Table_ident * m_referenced_table
Definition: parse_tree_nodes.h:2528
fk_match_opt m_fk_match_option
Definition: parse_tree_nodes.h:2530
fk_option m_fk_update_opt
Definition: parse_tree_nodes.h:2531
const LEX_STRING m_key_name
Definition: parse_tree_nodes.h:2526
const LEX_STRING m_constraint_name
Definition: parse_tree_nodes.h:2525
PT_table_constraint_def super
Definition: parse_tree_nodes.h:2502
List< PT_key_part_specification > * m_columns
Definition: parse_tree_nodes.h:2527
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:1910
Parse tree node for a window's frame, cf.
Definition: parse_tree_nodes.h:1465
PT_border * m_to
Definition: parse_tree_nodes.h:1470
PT_frame(const POS &pos, enum_window_frame_unit unit, PT_borders *from_to, PT_exclusion *exclusion)
Definition: parse_tree_nodes.h:1477
bool m_originally_absent
If true, this is an artificial frame, not specified by the user.
Definition: parse_tree_nodes.h:1475
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_window.cc:60
enum_window_frame_unit m_query_expression
Definition: parse_tree_nodes.h:1467
PT_border * m_from
Definition: parse_tree_nodes.h:1469
PT_exclusion * m_exclusion
Definition: parse_tree_nodes.h:1472
Definition: parse_tree_nodes.h:258
PT_order_list super
Definition: parse_tree_nodes.h:259
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.h:264
PT_gorder_list(const POS &pos)
Definition: parse_tree_nodes.h:262
Definition: parse_tree_nodes.h:3242
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:4672
const List< LEX_USER > * users
Definition: parse_tree_nodes.h:3244
const bool with_admin_option
Definition: parse_tree_nodes.h:3245
const Mem_root_array< PT_role_or_privilege * > * roles
Definition: parse_tree_nodes.h:3243
PT_grant_roles(const POS &pos, const Mem_root_array< PT_role_or_privilege * > *roles, const List< LEX_USER > *users, bool with_admin_option)
Definition: parse_tree_nodes.h:3248
Definition: parse_tree_nodes.h:707
olap_type olap
Definition: parse_tree_nodes.h:711
Parse_tree_node super
Definition: parse_tree_nodes.h:708
PT_group(const POS &pos, PT_order_list *group_list_arg, olap_type olap_arg)
Definition: parse_tree_nodes.h:721
PT_order_list * group_list
Definition: parse_tree_nodes.h:710
void add_json_info(Json_object *obj) override
Add all the node-specific json fields.
Definition: parse_tree_nodes.h:714
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:266
Definition: parse_tree_hints.h:100
A template for options that set a single <alter option> value in thd->lex->key_create_info.
Definition: parse_tree_nodes.h:2371
PT_index_option(const POS &pos, Option_type option_value)
Definition: parse_tree_nodes.h:2375
Option_type m_option_value
Definition: parse_tree_nodes.h:2384
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:2378
Definition: parse_tree_nodes.h:2475
Index_options m_options
Definition: parse_tree_nodes.h:2498
PT_inline_index_definition(const POS &pos, keytype type_par, const LEX_STRING &name_arg, PT_base_index_option *type, List< PT_key_part_specification > *cols, Index_options options)
Definition: parse_tree_nodes.h:2479
PT_table_constraint_def super
Definition: parse_tree_nodes.h:2476
keytype m_keytype
Definition: parse_tree_nodes.h:2494
PT_base_index_option * m_type
Definition: parse_tree_nodes.h:2496
List< PT_key_part_specification > * m_columns
Definition: parse_tree_nodes.h:2497
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:1898
const LEX_STRING m_name
Definition: parse_tree_nodes.h:2495
Definition: parse_tree_nodes.h:2036
virtual mem_root_deque< List_item * > & get_many_values()
Definition: parse_tree_nodes.h:2052
bool push_back(mem_root_deque< Item * > *x)
Definition: parse_tree_nodes.h:2047
PT_insert_values_list(const POS &pos, MEM_ROOT *mem_root)
Definition: parse_tree_nodes.h:2042
Parse_tree_node super
Definition: parse_tree_nodes.h:2037
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:1031
mem_root_deque< List_item * > many_values
Definition: parse_tree_nodes.h:2039
Top-level node for the INSERT statement.
Definition: parse_tree_nodes.h:2063
PT_item_list *const opt_on_duplicate_column_list
Definition: parse_tree_nodes.h:2077
PT_item_list *const column_list
Definition: parse_tree_nodes.h:2072
PT_item_list *const opt_on_duplicate_value_list
Definition: parse_tree_nodes.h:2078
PT_hint_list * opt_hints
Definition: parse_tree_nodes.h:2067
bool has_query_block() const
Definition: parse_tree_nodes.h:2121
const bool is_replace
Definition: parse_tree_nodes.h:2066
PT_query_expression_body * insert_query_expression
Definition: parse_tree_nodes.h:2074
Create_col_name_list *const opt_values_column_list
Definition: parse_tree_nodes.h:2076
Parse_tree_root super
Definition: parse_tree_nodes.h:2064
Table_ident *const table_ident
Definition: parse_tree_nodes.h:2070
PT_insert_values_list * row_value_list
Definition: parse_tree_nodes.h:2073
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:1042
const char *const opt_values_table_alias
Definition: parse_tree_nodes.h:2075
List< String > *const opt_use_partition
Definition: parse_tree_nodes.h:2071
const bool ignore
Definition: parse_tree_nodes.h:2069
const thr_lock_type lock_option
Definition: parse_tree_nodes.h:2068
PT_insert(const POS &pos, bool is_replace_arg, PT_hint_list *opt_hints_arg, thr_lock_type lock_option_arg, bool ignore_arg, Table_ident *table_ident_arg, List< String > *opt_use_partition_arg, PT_item_list *column_list_arg, PT_insert_values_list *row_value_list_arg, PT_query_expression_body *insert_query_expression_arg, const LEX_CSTRING &opt_values_table_alias_arg, Create_col_name_list *opt_values_column_list_arg, PT_item_list *opt_on_duplicate_column_list_arg, PT_item_list *opt_on_duplicate_value_list_arg)
Definition: parse_tree_nodes.h:2081
Definition: parse_tree_nodes.h:5550
List< PT_install_component_set_element > * m_set_elements
Definition: parse_tree_nodes.h:5553
PT_install_component(const POS &pos, THD *thd, Mem_root_array_YY< LEX_STRING > urns, List< PT_install_component_set_element > *set_elements)
Definition: parse_tree_nodes.cc:5140
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:5161
Mem_root_array_YY< LEX_STRING > m_urns
Definition: parse_tree_nodes.h:5552
Definition: parse_tree_nodes.h:1864
enum Setop_type type() const override
Definition: parse_tree_nodes.h:1870
PT_set_operation(const POS &pos, PT_query_expression_body *lhs, bool is_distinct, PT_query_expression_body *rhs, bool is_rhs_in_parentheses=false)
Definition: parse_tree_nodes.h:1798
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:1818
Definition: parse_tree_nodes.h:1310
sql_exchange m_exchange
Definition: parse_tree_nodes.h:1320
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:4262
PT_into_destination super
Definition: parse_tree_nodes.h:1311
PT_into_destination_dumpfile(const POS &pos, const LEX_STRING &file_name_arg)
Definition: parse_tree_nodes.h:1314
Definition: parse_tree_nodes.h:1290
PT_into_destination_outfile(const POS &pos, const LEX_STRING &file_name_arg, const CHARSET_INFO *charset_arg, const Field_separators &field_term_arg, const Line_separators &line_term_arg)
Definition: parse_tree_nodes.h:1294
PT_into_destination super
Definition: parse_tree_nodes.h:1291
sql_exchange m_exchange
Definition: parse_tree_nodes.h:1307
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:4253
Definition: parse_tree_nodes.h:1280
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:4238
PT_into_destination(const POS &pos)
Definition: parse_tree_nodes.h:1284
Parse_tree_node super
Definition: parse_tree_nodes.h:1281
Definition: parse_tree_nodes.h:1162
PT_transaction_characteristic super
Definition: parse_tree_nodes.h:1163
PT_isolation_level(const POS &pos, enum_tx_isolation level)
Definition: parse_tree_nodes.h:1166
Wrapper class for an Item list head, used to allocate Item lists in the parser in a context-independe...
Definition: parse_tree_helpers.h:105
mem_root_deque< Item * > value
Definition: parse_tree_helpers.h:113
uint elements() const
Definition: parse_tree_helpers.h:124
Definition: parse_tree_nodes.h:649
Item * on
Definition: parse_tree_nodes.h:651
PT_joined_table super
Definition: parse_tree_nodes.h:650
PT_joined_table_on(const POS &pos, PT_table_reference *tab1_node_arg, const POS &join_pos_arg, PT_joined_table_type type, PT_table_reference *tab2_node_arg, Item *on_arg)
Definition: parse_tree_nodes.h:654
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:3970
Definition: parse_tree_nodes.h:663
PT_joined_table_using(const POS &pos, PT_table_reference *tab1_node_arg, const POS &join_pos_arg, PT_joined_table_type type, PT_table_reference *tab2_node_arg, List< String > *using_fields_arg)
Definition: parse_tree_nodes.h:668
PT_joined_table_using(const POS &pos, PT_table_reference *tab1_node_arg, const POS &join_pos_arg, PT_joined_table_type type, PT_table_reference *tab2_node_arg)
A PT_joined_table_using without a list of columns denotes a natural join.
Definition: parse_tree_nodes.h:676
void add_json_info(Json_object *obj) override
Add all the node-specific json fields.
Definition: parse_tree_nodes.cc:4009
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:3998
List< String > * using_fields
Definition: parse_tree_nodes.h:665
PT_joined_table super
Definition: parse_tree_nodes.h:664
Definition: parse_tree_nodes.h:576
Table_ref * m_left_table_ref
Definition: parse_tree_nodes.h:585
PT_table_reference super
Definition: parse_tree_nodes.h:577
void add_rhs(PT_table_reference *table)
Adds the table reference as the right-hand side of this join.
Definition: parse_tree_nodes.h:619
~PT_joined_table() override=0
This class is being inherited, it should thus be abstract.
PT_joined_table_type m_type
Definition: parse_tree_nodes.h:582
Table_ref * m_right_table_ref
Definition: parse_tree_nodes.h:586
POS m_join_pos
Definition: parse_tree_nodes.h:581
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:3920
bool contextualize_tabs(Parse_context *pc)
Definition: parse_tree_nodes.cc:166
PT_joined_table(const POS &pos, PT_table_reference *tab1_node_arg, const POS &join_pos_arg, PT_joined_table_type type, PT_table_reference *tab2_node_arg)
Definition: parse_tree_nodes.h:589
PT_table_reference * m_left_pt_table
Definition: parse_tree_nodes.h:580
void add_json_info(Json_object *obj) override
Add all the node-specific json fields.
Definition: parse_tree_nodes.cc:3931
PT_table_reference * m_right_pt_table
Definition: parse_tree_nodes.h:583
PT_joined_table * add_cross_join(PT_cross_join *cj) override
Adds the cross join to this join operation.
Definition: parse_tree_nodes.h:613
Definition: parse_tree_nodes.h:5171
~PT_json_table_column_for_ordinality() override
Json_table_column * get_column() override
Definition: parse_tree_nodes.h:5178
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:3530
const char * m_name
Definition: parse_tree_nodes.h:5182
PT_json_table_column super
Definition: parse_tree_nodes.h:5172
unique_ptr_destroy_only< Json_table_column > m_column
Definition: parse_tree_nodes.h:5181
PT_json_table_column_for_ordinality(const POS &pos, LEX_STRING name)
Definition: parse_tree_nodes.cc:3523
Definition: parse_tree_nodes.h:5206
Json_table_column * get_column() override
Definition: parse_tree_nodes.h:5217
Item * m_path
Definition: parse_tree_nodes.h:5220
PT_json_table_column_with_nested_path(const POS &pos, Item *path, Mem_root_array< PT_json_table_column * > *nested_cols)
Definition: parse_tree_nodes.h:5210
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:3609
PT_json_table_column super
Definition: parse_tree_nodes.h:5207
Json_table_column * m_column
Definition: parse_tree_nodes.h:5222
const Mem_root_array< PT_json_table_column * > * m_nested_columns
Definition: parse_tree_nodes.h:5221
Definition: parse_tree_nodes.h:5185
~PT_json_table_column_with_path() override
const CHARSET_INFO * m_collation
Definition: parse_tree_nodes.h:5202
unique_ptr_destroy_only< Json_table_column > m_column
Definition: parse_tree_nodes.h:5199
const char * m_name
Definition: parse_tree_nodes.h:5200
PT_json_table_column_with_path(const POS &pos, unique_ptr_destroy_only< Json_table_column > column, LEX_STRING name, PT_type *type, const CHARSET_INFO *collation)
Definition: parse_tree_nodes.cc:3540
PT_json_table_column super
Definition: parse_tree_nodes.h:5186
Json_table_column * get_column() override
Definition: parse_tree_nodes.h:5196
PT_type * m_type
Definition: parse_tree_nodes.h:5201
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:3568
Definition: parse_tree_nodes.h:499
PT_json_table_column(const POS &pos)
Definition: parse_tree_nodes.h:501
virtual Json_table_column * get_column()=0
A key part specification.
Definition: parse_tree_nodes.h:2255
bool has_expression() const
Definition: parse_tree_nodes.h:2321
LEX_CSTRING m_column_name
The name of the column that this key part indexes.
Definition: parse_tree_nodes.h:2353
Parse_tree_node super
Definition: parse_tree_nodes.h:2256
bool is_explicit() const
Definition: parse_tree_nodes.h:2314
Item * get_expression() const
Get the indexed expression.
Definition: parse_tree_nodes.h:2298
LEX_CSTRING get_column_name() const
Get the column that this key part points to.
Definition: parse_tree_nodes.h:2330
enum_order get_order() const
Definition: parse_tree_nodes.h:2308
enum_order m_order
The direction of the index.
Definition: parse_tree_nodes.h:2350
bool do_contextualize(Parse_context *pc) override
Contextualize this key part specification.
Definition: parse_tree_nodes.cc:708
int get_prefix_length() const
Definition: parse_tree_nodes.h:2340
PT_key_part_specification(const POS &pos, Item *expression, enum_order order)
Constructor for a functional key part.
Definition: parse_tree_nodes.cc:694
int m_prefix_length
If this is greater than zero, it represents how many bytes of the column that is indexed.
Definition: parse_tree_nodes.h:2360
Item * m_expression
The indexed expression in case this is a functional key part.
Definition: parse_tree_nodes.h:2347
Definition: parse_tree_nodes.h:429
Parse_tree_node super
Definition: parse_tree_nodes.h:430
void add_json_info(Json_object *obj) override
Add all the node-specific json fields.
Definition: parse_tree_nodes.h:435
Limit_options limit_options
Definition: parse_tree_nodes.h:432
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:3853
PT_limit_clause(const POS &pos, const Limit_options &limit_options_arg)
Definition: parse_tree_nodes.h:441
Definition: parse_tree_nodes.h:5137
List< Index_hint > * m_opt_cache_key_list
Definition: parse_tree_nodes.h:5155
bool m_ignore_leaves
Definition: parse_tree_nodes.h:5156
PT_adm_partition * m_partitions
Definition: parse_tree_nodes.h:5154
Table_ident * m_table
Definition: parse_tree_nodes.h:5153
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:3456
PT_load_index_partitions_stmt(const POS &pos, MEM_ROOT *mem_root, Table_ident *table, PT_adm_partition *partitions, List< Index_hint > *opt_cache_key_list, bool ignore_leaves)
Definition: parse_tree_nodes.h:5139
Definition: parse_tree_nodes.h:5159
Mem_root_array< PT_preload_keys * > * m_preload_list
Definition: parse_tree_nodes.h:5168
PT_load_index_stmt(const POS &pos, MEM_ROOT *mem_root, Mem_root_array< PT_preload_keys * > *preload_list)
Definition: parse_tree_nodes.h:5161
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:3474
Definition: parse_tree_nodes.h:5498
const thr_lock_type m_lock_type
Definition: parse_tree_nodes.h:5533
Sql_cmd_load_table m_cmd
Definition: parse_tree_nodes.h:5531
PT_load_table(const POS &pos, enum_filetype filetype, thr_lock_type lock_type, bool is_local_file, enum_source_type source_type, const LEX_STRING filename, ulong file_count, bool in_key_order, On_duplicate on_duplicate, Table_ident *table, List< String > *opt_partitions, const CHARSET_INFO *opt_charset, LEX_CSTRING compression_algorithm, String *opt_xml_rows_identified_by, const Field_separators &opt_field_separators, const Line_separators &opt_line_separators, ulong opt_ignore_lines, PT_item_list *opt_fields_or_vars, PT_item_list *opt_set_fields, PT_item_list *opt_set_exprs, List< String > *opt_set_expr_strings, ulong parallel, ulonglong memory_size, bool is_bulk_operation)
Definition: parse_tree_nodes.h:5500
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:3780
Definition: parse_tree_nodes.h:801
PT_locking_clause_list(const POS &pos, MEM_ROOT *mem_root)
Definition: parse_tree_nodes.h:803
Mem_root_array_YY< PT_locking_clause * > m_locking_clauses
Definition: parse_tree_nodes.h:819
bool push_back(PT_locking_clause *locking_clause)
Definition: parse_tree_nodes.h:808
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.h:812
Definition: parse_tree_nodes.h:738
Lock_descriptor get_lock_descriptor() const
Definition: parse_tree_nodes.h:753
virtual bool set_lock_for_tables(Parse_context *pc)=0
Locked_row_action action() const
Definition: parse_tree_nodes.h:750
Locked_row_action m_locked_row_action
Definition: parse_tree_nodes.h:769
PT_locking_clause(const POS &pos, Lock_strength strength, Locked_row_action action)
Definition: parse_tree_nodes.h:740
Lock_strength m_lock_strength
Definition: parse_tree_nodes.h:768
bool do_contextualize(Parse_context *pc) final
Definition: parse_tree_nodes.cc:2271
Definition: parse_tree_nodes.h:1732
bool is_table_value_constructor() const override
Definition: parse_tree_nodes.h:1761
bool has_trailing_into_clause() const override
Definition: parse_tree_nodes.h:1755
PT_insert_values_list * get_row_value_list() const override
Definition: parse_tree_nodes.h:1765
PT_locking_clause_list *const m_locking_clauses
Definition: parse_tree_nodes.h:1771
bool is_set_operation() const override
Definition: parse_tree_nodes.h:1748
PT_locking(const POS &pos, PT_query_expression_body *qe, PT_locking_clause_list *locking_clauses)
Definition: parse_tree_nodes.h:1736
bool has_into_clause() const override
Definition: parse_tree_nodes.h:1752
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.h:1742
bool can_absorb_order_and_limit(bool order, bool limit) const override
True if this query expression can absorb an extraneous order by/limit clause.
Definition: parse_tree_nodes.h:1757
PT_query_expression_body *const m_query_expression
Definition: parse_tree_nodes.h:1770
Definition: parse_tree_nodes.h:5000
bool m_no_write_to_binlog
Definition: parse_tree_nodes.h:5011
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:3358
Mem_root_array< Table_ident * > * m_table_list
Definition: parse_tree_nodes.h:5012
PT_optimize_table_stmt(const POS &pos, MEM_ROOT *mem_root, bool no_write_to_binlog, Mem_root_array< Table_ident * > *table_list)
Definition: parse_tree_nodes.h:5002
Definition: parse_tree_nodes.h:1086
PT_option_value_list_head(const POS &pos, const POS &delimiter_pos_arg, Parse_tree_node *value_arg, const POS &value_pos_arg)
Definition: parse_tree_nodes.h:1094
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:4123
Parse_tree_node super
Definition: parse_tree_nodes.h:1087
POS value_pos
Definition: parse_tree_nodes.h:1091
Parse_tree_node * value
Definition: parse_tree_nodes.h:1090
POS delimiter_pos
Definition: parse_tree_nodes.h:1089
Definition: parse_tree_nodes.h:1105
PT_option_value_list(const POS &pos, PT_option_value_list_head *head_arg, const POS &delimiter_pos_arg, Parse_tree_node *tail, const POS &tail_pos)
Definition: parse_tree_nodes.h:1111
PT_option_value_list_head * head
Definition: parse_tree_nodes.h:1108
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.h:1116
PT_option_value_list_head super
Definition: parse_tree_nodes.h:1106
Definition: parse_tree_nodes.h:970
const CHARSET_INFO * opt_charset
Definition: parse_tree_nodes.h:973
PT_option_value_no_option_type super
Definition: parse_tree_nodes.h:971
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:199
PT_option_value_no_option_type_charset(const POS &pos, const CHARSET_INFO *opt_charset_arg)
Definition: parse_tree_nodes.h:976
Definition: parse_tree_nodes.h:984
PT_option_value_no_option_type_names(const POS &pos, const POS &error_pos)
Definition: parse_tree_nodes.h:990
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:217
POS m_error_pos
Definition: parse_tree_nodes.h:987
PT_option_value_no_option_type super
Definition: parse_tree_nodes.h:985
Definition: parse_tree_nodes.h:1046
POS expr_pos
Definition: parse_tree_nodes.h:1054
bool retain_current_password
Definition: parse_tree_nodes.h:1052
PT_option_value_no_option_type_password_for(const POS &pos, LEX_USER *user_arg, const char *password_arg, const char *current_password_arg, bool retain_current, bool random_pass, const POS &expr_pos_arg)
Definition: parse_tree_nodes.h:1057
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:606
LEX_USER * user
Definition: parse_tree_nodes.h:1049
const char * password
Definition: parse_tree_nodes.h:1050
PT_start_option_value_list super
Definition: parse_tree_nodes.h:1047
bool random_password_generator
Definition: parse_tree_nodes.h:1053
const char * current_password
Definition: parse_tree_nodes.h:1051
Definition: parse_tree_nodes.h:1019
bool random_password_generator
Definition: parse_tree_nodes.h:1025
PT_option_value_no_option_type_password(const POS &pos, const char *password_arg, const char *current_password_arg, bool retain_current, bool random_password, const POS &expr_pos_arg)
Definition: parse_tree_nodes.h:1029
const char * current_password
Definition: parse_tree_nodes.h:1023
PT_start_option_value_list super
Definition: parse_tree_nodes.h:1020
POS expr_pos
Definition: parse_tree_nodes.h:1026
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:652
bool retain_current_password
Definition: parse_tree_nodes.h:1024
const char * password
Definition: parse_tree_nodes.h:1022
Definition: parse_tree_nodes.h:930
PT_option_value_no_option_type_user_var(const POS &pos, const LEX_STRING &name_arg, Item *expr_arg)
Definition: parse_tree_nodes.h:937
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:4082
LEX_STRING name
Definition: parse_tree_nodes.h:933
PT_option_value_no_option_type super
Definition: parse_tree_nodes.h:931
Item * expr
Definition: parse_tree_nodes.h:934
Definition: parse_tree_nodes.h:899
PT_option_value_no_option_type(const POS &pos)
Definition: parse_tree_nodes.h:901
Definition: parse_tree_nodes.h:1072
enum_var_type type
Definition: parse_tree_nodes.h:1075
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:4118
Parse_tree_node super
Definition: parse_tree_nodes.h:1073
PT_set_scoped_system_variable * value
Definition: parse_tree_nodes.h:1076
PT_option_value_type(const POS &pos, enum_var_type type_arg, PT_set_scoped_system_variable *value_arg)
Definition: parse_tree_nodes.h:1079
Definition: parse_tree_nodes.h:216
Parse_tree_node super
Definition: parse_tree_nodes.h:217
void add_json_info(Json_object *obj) override
Add all the node-specific json fields.
Definition: parse_tree_nodes.h:228
PT_order_expr(const POS &pos, Item *item_arg, enum_order dir)
Definition: parse_tree_nodes.h:220
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:328
Definition: parse_tree_nodes.h:234
void push_back(PT_order_expr *order)
Definition: parse_tree_nodes.h:251
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.h:243
Parse_tree_node super
Definition: parse_tree_nodes.h:235
PT_order_list(const POS &pos)
Definition: parse_tree_nodes.h:241
SQL_I_List< ORDER > value
Definition: parse_tree_nodes.h:238
Definition: parse_tree_nodes.h:727
Parse_tree_node super
Definition: parse_tree_nodes.h:728
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:311
PT_order(const POS &pos, PT_order_list *order_list_arg)
Definition: parse_tree_nodes.h:732
PT_order_list * order_list
Definition: parse_tree_nodes.h:731
Node for the PARTITION clause of CREATE/ALTER TABLE.
Definition: parse_tree_partitions.h:404
Node for the PARTITION definition clause.
Definition: parse_tree_partitions.h:625
Definition: parse_tree_nodes.h:5118
List< Index_hint > * m_opt_cache_key_list
Definition: parse_tree_nodes.h:5133
Table_ddl_node super
Definition: parse_tree_nodes.h:5119
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.cc:4872
PT_preload_keys(const POS &pos, Table_ident *table, List< Index_hint > *opt_cache_key_list, bool ignore_leaves)
Definition: parse_tree_nodes.h:5122
Table_ident * m_table
Definition: parse_tree_nodes.h:5132
bool m_ignore_leaves
Definition: parse_tree_nodes.h:5134
Definition: parse_tree_nodes.h:772
PT_query_block_locking_clause(const POS &pos, Lock_strength strength, Locked_row_action action=Locked_row_action::WAIT)
Definition: parse_tree_nodes.h:774
bool set_lock_for_tables(Parse_context *pc) override
Definition: parse_tree_nodes.cc:2293
Definition: parse_tree_nodes.h:822
virtual bool can_absorb_order_and_limit(bool order, bool limit) const =0
True if this query expression can absorb an extraneous order by/limit clause.
virtual bool is_table_value_constructor() const =0
virtual bool is_set_operation() const =0
virtual Setop_type type() const
Definition: parse_tree_nodes.h:826
Setop_type
Definition: parse_tree_nodes.h:825
@ UNION
Definition: parse_tree_nodes.h:825
@ EXCEPT
Definition: parse_tree_nodes.h:825
@ NONE
Definition: parse_tree_nodes.h:825
@ INTERSECT
Definition: parse_tree_nodes.h:825
virtual PT_insert_values_list * get_row_value_list() const =0
PT_query_expression_body(const POS &pos)
Definition: parse_tree_nodes.h:824
virtual bool has_into_clause() const =0
virtual bool has_trailing_into_clause() const =0
Definition: parse_tree_nodes.h:1626
PT_order * m_order
Definition: parse_tree_nodes.h:1723
PT_limit_clause * m_limit
Definition: parse_tree_nodes.h:1724
bool is_set_operation() const override
Definition: parse_tree_nodes.h:1646
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:4291
PT_query_expression(const POS &pos, PT_with_clause *with_clause, PT_query_expression_body *body, PT_order *order, PT_limit_clause *limit)
Definition: parse_tree_nodes.h:1628
PT_query_expression_body * m_body
Definition: parse_tree_nodes.h:1722
bool has_into_clause() const override
Definition: parse_tree_nodes.h:1648
bool has_trailing_into_clause() const override
Definition: parse_tree_nodes.h:1649
PT_query_expression(const POS &pos, PT_query_expression_body *body)
Definition: parse_tree_nodes.h:1641
bool contextualize_order_and_limit(Parse_context *pc)
Contextualizes the order and limit clauses, re-interpreting them according to the rules.
Definition: parse_tree_nodes.cc:1329
bool can_absorb_order_and_limit(bool order, bool limit) const override
True if this query expression can absorb an extraneous order by/limit clause.
Definition: parse_tree_nodes.h:1654
PT_insert_values_list * get_row_value_list() const override
Definition: parse_tree_nodes.h:1706
PT_query_expression(const POS &pos, PT_query_expression_body *body, PT_order *order, PT_limit_clause *limit)
Definition: parse_tree_nodes.h:1637
PT_with_clause * m_with_clause
Definition: parse_tree_nodes.h:1725
bool is_table_value_constructor() const override
Definition: parse_tree_nodes.h:1702
Definition: parse_tree_nodes.h:1488
PT_query_primary(const POS &pos)
Definition: parse_tree_nodes.h:1490
Definition: parse_tree_nodes.h:1493
bool is_implicit_from_clause() const
Definition: parse_tree_nodes.h:1586
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:1226
void add_json_info(Json_object *obj) override
Add all the node-specific json fields.
Definition: parse_tree_nodes.cc:1299
PT_into_destination * opt_into1
Definition: parse_tree_nodes.h:1499
PT_query_specification(const POS &pos, PT_hint_list *opt_hints_arg, const Query_options &options_arg, PT_item_list *item_list_arg, PT_into_destination *opt_into1_arg, const Mem_root_array_YY< PT_table_reference * > &from_clause_arg, Item *opt_where_clause_arg, PT_group *opt_group_clause_arg, Item *opt_having_clause_arg, PT_window_list *opt_window_clause_arg, Item *opt_qualify_clause_arg, bool implicit_from_clause)
Definition: parse_tree_nodes.h:1509
PT_hint_list * opt_hints
Definition: parse_tree_nodes.h:1496
PT_query_specification(const POS &pos, const Query_options &options_arg, PT_item_list *item_list_arg)
Definition: parse_tree_nodes.h:1550
Item * opt_having_clause
Definition: parse_tree_nodes.h:1504
PT_insert_values_list * get_row_value_list() const override
Definition: parse_tree_nodes.h:1580
PT_window_list * opt_window_clause
Definition: parse_tree_nodes.h:1505
const bool m_is_from_clause_implicit
Definition: parse_tree_nodes.h:1500
bool is_set_operation() const override
Definition: parse_tree_nodes.h:1575
bool has_into_clause() const override
Definition: parse_tree_nodes.h:1567
PT_item_list * item_list
Definition: parse_tree_nodes.h:1498
Mem_root_array_YY< PT_table_reference * > from_clause
Definition: parse_tree_nodes.h:1501
bool is_table_value_constructor() const override
Definition: parse_tree_nodes.h:1579
Query_options options
Definition: parse_tree_nodes.h:1497
PT_group * opt_group_clause
Definition: parse_tree_nodes.h:1503
bool can_absorb_order_and_limit(bool, bool) const override
True if this query expression can absorb an extraneous order by/limit clause.
Definition: parse_tree_nodes.h:1577
Item * opt_qualify_clause
Definition: parse_tree_nodes.h:1506
bool has_trailing_into_clause() const override
Definition: parse_tree_nodes.h:1568
PT_query_specification(const POS &pos, const Query_options &options_arg, PT_item_list *item_list_arg, const Mem_root_array_YY< PT_table_reference * > &from_clause_arg, Item *opt_where_clause_arg)
Definition: parse_tree_nodes.h:1532
Item * opt_where_clause
Definition: parse_tree_nodes.h:1502
PT_query_primary super
Definition: parse_tree_nodes.h:1494
Definition: parse_tree_nodes.h:4930
Mem_root_array< Table_ident * > * m_table_list
Definition: parse_tree_nodes.h:4947
bool m_no_write_to_binlog
Definition: parse_tree_nodes.h:4946
PT_repair_table_stmt(const POS &pos, MEM_ROOT *mem_root, bool no_write_to_binlog, Mem_root_array< Table_ident * > *table_list, decltype(HA_CHECK_OPT::flags) flags, decltype(HA_CHECK_OPT::sql_flags) sql_flags)
Definition: parse_tree_nodes.h:4932
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:3297
decltype(HA_CHECK_OPT::sql_flags) m_sql_flags
Definition: parse_tree_nodes.h:4949
decltype(HA_CHECK_OPT::flags) m_flags
Definition: parse_tree_nodes.h:4948
Top-level node for the SHUTDOWN statement.
Definition: parse_tree_nodes.h:5542
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:4951
Sql_cmd_restart_server sql_cmd
Definition: parse_tree_nodes.h:5547
Definition: parse_tree_nodes.h:3259
const Mem_root_array< PT_role_or_privilege * > * roles
Definition: parse_tree_nodes.h:3260
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:4686
const List< LEX_USER > * users
Definition: parse_tree_nodes.h:3261
PT_revoke_roles(const POS &pos, Mem_root_array< PT_role_or_privilege * > *roles, const List< LEX_USER > *users)
Definition: parse_tree_nodes.h:3264
Definition: parse_tree_nodes.h:3195
LEX_STRING role
Definition: parse_tree_nodes.h:3196
LEX_STRING host
Definition: parse_tree_nodes.h:3197
PT_role_at_host(const POS &pos, const POS &errpos, const LEX_STRING &role, const LEX_STRING &host)
Definition: parse_tree_nodes.h:3200
LEX_USER * get_user(THD *thd) override
Definition: parse_tree_nodes.cc:4652
Definition: parse_tree_nodes.h:3207
LEX_STRING ident
Definition: parse_tree_nodes.h:3208
Privilege * get_privilege(THD *thd) override
Definition: parse_tree_nodes.cc:4660
LEX_USER * get_user(THD *thd) override
Definition: parse_tree_nodes.cc:4656
PT_role_or_dynamic_privilege(const POS &pos, const POS &errpos, const LEX_STRING &ident)
Definition: parse_tree_nodes.h:3211
Definition: parse_tree_nodes.h:3184
virtual LEX_USER * get_user(THD *thd)
Definition: parse_tree_nodes.cc:4642
virtual Privilege * get_privilege(THD *thd)
Definition: parse_tree_nodes.cc:4647
POS m_errpos
Definition: parse_tree_nodes.h:3186
PT_role_or_privilege(const POS &pos, const POS &errpos)
Definition: parse_tree_nodes.h:3189
Definition: parse_tree_nodes.h:420
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:3847
PT_select_item_list(const POS &pos)
Definition: parse_tree_nodes.h:424
PT_item_list super
Definition: parse_tree_nodes.h:421
Definition: parse_tree_nodes.h:1337
sp_head * sp
Definition: parse_tree_nodes.h:1347
PT_select_sp_var(const POS &pos, const LEX_STRING &name_arg)
Definition: parse_tree_nodes.h:1351
uint offset
Definition: parse_tree_nodes.h:1340
uint get_offset() const override
Definition: parse_tree_nodes.h:1355
PT_select_var super
Definition: parse_tree_nodes.h:1338
bool is_local() const override
Definition: parse_tree_nodes.h:1354
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:712
Definition: parse_tree_nodes.h:1873
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:761
PT_query_expression_body * m_qe
Definition: parse_tree_nodes.h:1915
const bool m_has_trailing_locking_clauses
Definition: parse_tree_nodes.h:1917
PT_into_destination * m_into
Definition: parse_tree_nodes.h:1916
std::string get_printable_parse_tree(THD *thd) override
Definition: parse_tree_nodes.cc:732
Parse_tree_root super
Definition: parse_tree_nodes.h:1874
PT_select_stmt(const POS &pos, enum_sql_command sql_command, PT_query_expression_body *qe)
Definition: parse_tree_nodes.h:1882
enum_sql_command m_sql_command
Definition: parse_tree_nodes.h:1914
PT_select_stmt(const POS &pos, PT_query_expression_body *qe, PT_into_destination *into=nullptr, bool has_trailing_locking_clauses=false)
Creates a SELECT command.
Definition: parse_tree_nodes.h:1901
Definition: parse_tree_nodes.h:1360
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:4271
List< PT_select_var > value
Definition: parse_tree_nodes.h:1366
PT_into_destination super
Definition: parse_tree_nodes.h:1361
bool push_back(PT_select_var *var)
Definition: parse_tree_nodes.h:1370
PT_select_var_list(const POS &pos)
Definition: parse_tree_nodes.h:1364
Definition: parse_tree_nodes.h:1323
const LEX_STRING name
Definition: parse_tree_nodes.h:1325
virtual bool is_local() const
Definition: parse_tree_nodes.h:1330
virtual uint get_offset() const
Definition: parse_tree_nodes.h:1331
PT_select_var(const POS &pos, const LEX_STRING &name_arg)
Definition: parse_tree_nodes.h:1327
Definition: parse_tree_nodes.h:997
PT_option_value_no_option_type super
Definition: parse_tree_nodes.h:998
const CHARSET_INFO * opt_charset
Definition: parse_tree_nodes.h:1000
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:233
PT_set_names(const POS &pos, const CHARSET_INFO *opt_charset_arg, const CHARSET_INFO *opt_collation_arg)
Definition: parse_tree_nodes.h:1004
const CHARSET_INFO * opt_collation
Definition: parse_tree_nodes.h:1001
Definition: parse_tree_nodes.h:1794
bool has_trailing_into_clause() const override
Definition: parse_tree_nodes.h:1818
bool m_is_distinct
Definition: parse_tree_nodes.h:1836
bool can_absorb_order_and_limit(bool, bool) const override
True if this query expression can absorb an extraneous order by/limit clause.
Definition: parse_tree_nodes.h:1823
bool is_distinct() const
Definition: parse_tree_nodes.h:1827
void merge_descendants(Parse_context *pc, Query_term_set_op *setop, QueryLevel &ql)
Possibly merge lower syntactic levels of set operations (UNION, INTERSECT and EXCEPT) into setop,...
Definition: parse_tree_nodes.cc:1629
PT_into_destination * m_into
Definition: parse_tree_nodes.h:1837
PT_insert_values_list * get_row_value_list() const override
Definition: parse_tree_nodes.h:1826
PT_set_operation(const POS &pos, PT_query_expression_body *lhs, bool is_distinct, PT_query_expression_body *rhs, bool is_rhs_in_parentheses=false)
Definition: parse_tree_nodes.h:1798
bool has_into_clause() const override
Definition: parse_tree_nodes.h:1812
void set_is_rhs_in_parentheses(bool v)
Definition: parse_tree_nodes.h:1830
bool m_is_rhs_in_parentheses
Definition: parse_tree_nodes.h:1838
bool is_set_operation() const override
Definition: parse_tree_nodes.h:1810
void add_json_info(Json_object *obj) override
Add all the node-specific json fields.
Definition: parse_tree_nodes.h:1839
bool is_table_value_constructor() const override
Definition: parse_tree_nodes.h:1825
List< PT_query_expression_body > m_list
Definition: parse_tree_nodes.h:1829
bool contextualize_setop(Parse_context *pc, Query_term_type setop_type, Surrounding_context context)
Definition: parse_tree_nodes.cc:1763
void merge_children(Query_term_set_op *setop, Query_term_set_op *lower)
Append the children of 'lower' to those of 'setop'.
Definition: parse_tree_nodes.cc:1502
Parse tree node for SET RESOURCE GROUP statement.
Definition: parse_tree_nodes.h:5451
PT_set_resource_group(const POS &pos, const LEX_CSTRING &name, Mem_root_array< ulonglong > *thread_id_list)
Definition: parse_tree_nodes.h:5455
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:4941
resourcegroups::Sql_cmd_set_resource_group sql_cmd
Definition: parse_tree_nodes.h:5452
Definition: parse_tree_nodes.h:3139
PT_set_role(const POS &pos, const List< LEX_USER > *roles)
Definition: parse_tree_nodes.h:3148
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:4637
PT_set_role(const POS &pos, role_enum role_type, const List< LEX_USER > *opt_except_roles=nullptr)
Definition: parse_tree_nodes.h:3143
Sql_cmd_set_role sql_cmd
Definition: parse_tree_nodes.h:3140
Definition: parse_tree_nodes.h:877
Parse_tree_node super
Definition: parse_tree_nodes.h:878
const LEX_CSTRING m_name
Definition: parse_tree_nodes.h:895
PT_set_scoped_system_variable(const POS &pos, const POS &var_pos, const LEX_CSTRING &opt_prefix, const LEX_CSTRING &name, Item *opt_expr)
Definition: parse_tree_nodes.h:881
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:4040
const POS m_varpos
Definition: parse_tree_nodes.h:893
const LEX_CSTRING m_opt_prefix
Definition: parse_tree_nodes.h:894
Item * m_opt_expr
Definition: parse_tree_nodes.h:896
Definition: parse_tree_nodes.h:945
const enum_var_type m_scope
Definition: parse_tree_nodes.h:962
PT_option_value_no_option_type super
Definition: parse_tree_nodes.h:946
const LEX_CSTRING m_opt_prefix
Definition: parse_tree_nodes.h:964
const LEX_CSTRING m_name
Definition: parse_tree_nodes.h:965
Item * m_opt_expr
Definition: parse_tree_nodes.h:966
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:4095
PT_set_system_variable(const POS &pos, enum_var_type scope, const POS &name_pos, const LEX_CSTRING &opt_prefix, const LEX_CSTRING &name, Item *opt_expr)
Definition: parse_tree_nodes.h:949
const POS m_name_pos
Definition: parse_tree_nodes.h:963
Definition: parse_tree_nodes.h:905
Item * m_opt_expr
Definition: parse_tree_nodes.h:926
PT_set_variable(const POS &pos, const POS &varpos, const LEX_CSTRING &opt_prefix, const LEX_CSTRING &name, const POS &expr_pos, Item *opt_expr)
Definition: parse_tree_nodes.h:909
PT_option_value_no_option_type super
Definition: parse_tree_nodes.h:906
const POS m_expr_pos
Definition: parse_tree_nodes.h:925
const LEX_CSTRING m_opt_prefix
Definition: parse_tree_nodes.h:923
const POS m_varpos
Definition: parse_tree_nodes.h:922
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:524
const LEX_CSTRING m_name
Definition: parse_tree_nodes.h:924
Definition: parse_tree_nodes.h:1266
Parse_tree_node super
Definition: parse_tree_nodes.h:1267
POS set_pos
Definition: parse_tree_nodes.h:1269
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:4221
PT_start_option_value_list * list
Definition: parse_tree_nodes.h:1270
PT_set(const POS &pos, const POS &set_pos_arg, PT_start_option_value_list *list_arg)
Definition: parse_tree_nodes.h:1273
Base class for Parse tree nodes of SHOW statements.
Definition: parse_tree_nodes.h:3286
PT_show_base(const POS &pos, enum_sql_command sql_command)
Definition: parse_tree_nodes.h:3288
enum_sql_command m_sql_command
SQL command.
Definition: parse_tree_nodes.h:3292
Parse tree node for SHOW BINARY LOG STATUS statement.
Definition: parse_tree_nodes.h:3743
PT_show_binary_log_status(const POS &pos)
Definition: parse_tree_nodes.h:3745
Sql_cmd_show_binary_log_status m_sql_cmd
Definition: parse_tree_nodes.h:3751
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2833
Parse tree node for SHOW BINLOG EVENTS statement.
Definition: parse_tree_nodes.h:3360
PT_limit_clause *const m_opt_limit_clause
Definition: parse_tree_nodes.h:3372
Sql_cmd_show_binlog_events m_sql_cmd
Definition: parse_tree_nodes.h:3374
PT_show_binlog_events(const POS &pos, const LEX_STRING opt_log_file_name={}, PT_limit_clause *opt_limit_clause=nullptr)
Definition: parse_tree_nodes.h:3362
const LEX_STRING m_opt_log_file_name
Definition: parse_tree_nodes.h:3371
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2567
Parse tree node for SHOW BINLOGS statement.
Definition: parse_tree_nodes.h:3379
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2579
PT_show_binlogs(const POS &pos)
Definition: parse_tree_nodes.h:3381
Sql_cmd_show_binlogs m_sql_cmd
Definition: parse_tree_nodes.h:3386
Parse tree node for SHOW CHARACTER SET statement.
Definition: parse_tree_nodes.h:3391
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2586
PT_show_charsets(const POS &pos, const LEX_STRING &wild, Item *where)
Definition: parse_tree_nodes.h:3393
Sql_cmd_show_charsets m_sql_cmd
Definition: parse_tree_nodes.h:3399
Parse tree node for SHOW COLLATIONS statement.
Definition: parse_tree_nodes.h:3404
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2599
PT_show_collations(const POS &pos, const LEX_STRING &wild, Item *where)
Definition: parse_tree_nodes.h:3406
Sql_cmd_show_collations m_sql_cmd
Definition: parse_tree_nodes.h:3412
Base class for Parse tree nodes of SHOW COUNT(*) { WARNINGS | ERRORS } statements.
Definition: parse_tree_nodes.h:3418
Sql_cmd * make_cmd_generic(THD *thd, LEX_CSTRING diagnostic_variable_name)
Definition: parse_tree_nodes.cc:2612
PT_show_count_base(const POS &pos)
Definition: parse_tree_nodes.h:3420
Parse tree node for SHOW COUNT(*) ERRORS.
Definition: parse_tree_nodes.h:3429
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.h:3433
PT_show_count_errors(const POS &pos)
Definition: parse_tree_nodes.h:3431
Parse tree node for SHOW COUNT(*) WARNINGS.
Definition: parse_tree_nodes.h:3440
PT_show_count_warnings(const POS &pos)
Definition: parse_tree_nodes.h:3442
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.h:3444
Parse tree node for SHOW CREATE DATABASE statement.
Definition: parse_tree_nodes.h:3451
const LEX_STRING m_name
Definition: parse_tree_nodes.h:3463
PT_show_create_database(const POS &pos, bool if_not_exists, const LEX_STRING &name)
Definition: parse_tree_nodes.h:3453
Sql_cmd_show_create_database m_sql_cmd
Definition: parse_tree_nodes.h:3465
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2644
const bool m_if_not_exists
Definition: parse_tree_nodes.h:3462
Parse tree node for SHOW CREATE EVENT statement.
Definition: parse_tree_nodes.h:3470
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2657
sp_name *const m_spname
Definition: parse_tree_nodes.h:3478
PT_show_create_event(const POS &pos, sp_name *event_name)
Definition: parse_tree_nodes.h:3472
Sql_cmd_show_create_event m_sql_cmd
Definition: parse_tree_nodes.h:3480
Parse tree node for SHOW CREATE FUNCTION statement.
Definition: parse_tree_nodes.h:3485
Sql_cmd_show_create_function m_sql_cmd
Definition: parse_tree_nodes.h:3495
PT_show_create_function(const POS &pos, sp_name *function_name)
Definition: parse_tree_nodes.h:3487
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2666
sp_name *const m_spname
Definition: parse_tree_nodes.h:3493
Parse tree node for SHOW CREATE PROCEDURE statement.
Definition: parse_tree_nodes.h:3500
Sql_cmd_show_create_procedure m_sql_cmd
Definition: parse_tree_nodes.h:3510
sp_name *const m_spname
Definition: parse_tree_nodes.h:3508
PT_show_create_procedure(const POS &pos, sp_name *procedure_name)
Definition: parse_tree_nodes.h:3502
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2675
Parse tree node for SHOW CREATE TABLE and VIEW statements.
Definition: parse_tree_nodes.h:3515
Sql_cmd_show_create_table m_sql_cmd
Definition: parse_tree_nodes.h:3523
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2684
PT_show_create_table(const POS &pos, Table_ident *table_ident)
Definition: parse_tree_nodes.h:3517
Parse tree node for SHOW CREATE TRIGGER statement.
Definition: parse_tree_nodes.h:3528
PT_show_create_trigger(const POS &pos, sp_name *trigger_name)
Definition: parse_tree_nodes.h:3530
Sql_cmd_show_create_trigger m_sql_cmd
Definition: parse_tree_nodes.h:3538
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2703
sp_name *const m_spname
Definition: parse_tree_nodes.h:3536
Parse tree node for SHOW CREATE USER statement.
Definition: parse_tree_nodes.h:3543
Sql_cmd_show_create_user m_sql_cmd
Definition: parse_tree_nodes.h:3553
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2712
PT_show_create_user(const POS &pos, LEX_USER *user)
Definition: parse_tree_nodes.h:3545
LEX_USER *const m_user
Definition: parse_tree_nodes.h:3551
Parse tree node for SHOW CREATE VIEW statement.
Definition: parse_tree_nodes.h:3558
PT_show_create_view(const POS &pos, Table_ident *table_ident)
Definition: parse_tree_nodes.h:3560
Sql_cmd_show_create_table m_sql_cmd
Definition: parse_tree_nodes.h:3566
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2696
Parse tree node for SHOW DATABASES statement.
Definition: parse_tree_nodes.h:3571
Sql_cmd_show_databases m_sql_cmd
Definition: parse_tree_nodes.h:3579
PT_show_databases(const POS &pos, const LEX_STRING &wild, Item *where)
Definition: parse_tree_nodes.h:3573
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2721
Parse tree node for SHOW ENGINE statements.
Definition: parse_tree_nodes.h:3584
PT_show_engine_base(const POS &pos, enum enum_sql_command sql_command, const LEX_STRING opt_engine={})
Definition: parse_tree_nodes.h:3586
LEX_STRING m_engine
Definition: parse_tree_nodes.h:3592
bool m_all
Definition: parse_tree_nodes.h:3593
Parse tree node for SHOW ENGINE LOGS statement.
Definition: parse_tree_nodes.h:3598
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2734
PT_show_engine_logs(const POS &pos, LEX_STRING opt_engine={})
Definition: parse_tree_nodes.h:3600
Sql_cmd_show_engine_logs m_sql_cmd
Definition: parse_tree_nodes.h:3606
Parse tree node for SHOW ENGINE MUTEX statement.
Definition: parse_tree_nodes.h:3611
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2748
Sql_cmd_show_engine_mutex m_sql_cmd
Definition: parse_tree_nodes.h:3619
PT_show_engine_mutex(const POS &pos, LEX_STRING opt_engine={})
Definition: parse_tree_nodes.h:3613
Parse tree node for SHOW ENGINE STATUS statement.
Definition: parse_tree_nodes.h:3624
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2762
PT_show_engine_status(const POS &pos, LEX_STRING opt_engine={})
Definition: parse_tree_nodes.h:3626
Sql_cmd_show_engine_status m_sql_cmd
Definition: parse_tree_nodes.h:3632
Parse tree node for SHOW ENGINES statement.
Definition: parse_tree_nodes.h:3637
PT_show_engines(const POS &pos)
Definition: parse_tree_nodes.h:3639
Sql_cmd_show_engines m_sql_cmd
Definition: parse_tree_nodes.h:3645
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2776
Parse tree node for SHOW ERRORS statement.
Definition: parse_tree_nodes.h:3650
PT_limit_clause *const m_opt_limit_clause
Definition: parse_tree_nodes.h:3659
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2785
Sql_cmd_show_errors m_sql_cmd
Definition: parse_tree_nodes.h:3661
PT_show_errors(const POS &pos, PT_limit_clause *opt_limit_clause=nullptr)
Definition: parse_tree_nodes.h:3652
Parse tree node for SHOW EVENTS statement.
Definition: parse_tree_nodes.h:3666
Sql_cmd_show_events m_sql_cmd
Definition: parse_tree_nodes.h:3675
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2819
PT_show_events(const POS &pos, char *opt_db, const LEX_STRING &wild, Item *where)
Definition: parse_tree_nodes.h:3668
Parse tree node for SHOW COLUMNS statement.
Definition: parse_tree_nodes.h:3680
Sql_cmd_show_columns m_sql_cmd
Definition: parse_tree_nodes.h:3694
Show_cmd_type m_show_cmd_type
Definition: parse_tree_nodes.h:3693
PT_show_fields(const POS &pos, Show_cmd_type show_cmd_type, Table_ident *table, LEX_STRING opt_wild={}, Item *opt_where=nullptr)
Definition: parse_tree_nodes.h:3684
PT_show_table_base super
Definition: parse_tree_nodes.h:3681
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2797
Base class for Parse tree nodes of SHOW statements with LIKE/WHERE parameter.
Definition: parse_tree_nodes.h:3297
Item * m_where
Definition: parse_tree_nodes.h:3306
PT_show_filter_base(const POS &pos, enum_sql_command sql_command, const LEX_STRING &wild, Item *where)
Definition: parse_tree_nodes.h:3299
LEX_STRING m_wild
Wild or where clause used in the statement.
Definition: parse_tree_nodes.h:3305
Parse tree node for SHOW FUNCTION CODE statement.
Definition: parse_tree_nodes.h:3699
PT_show_function_code(const POS &pos, const sp_name *function_name)
Definition: parse_tree_nodes.h:3701
Parse tree node for SHOW GRANTS statement.
Definition: parse_tree_nodes.h:3707
Sql_cmd_show_grants sql_cmd
Definition: parse_tree_nodes.h:3719
PT_show_grants(const POS &pos, const LEX_USER *opt_for_user, const List< LEX_USER > *opt_using_users)
Definition: parse_tree_nodes.h:3709
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:4703
Parse tree node for SHOW INDEX statement.
Definition: parse_tree_nodes.h:3724
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2811
PT_show_keys(const POS &pos, bool extended_show, Table_ident *table, Item *where)
Definition: parse_tree_nodes.h:3726
Sql_cmd_show_keys m_sql_cmd
Definition: parse_tree_nodes.h:3738
bool m_extended_show
Definition: parse_tree_nodes.h:3737
PT_show_table_base super
Definition: parse_tree_nodes.h:3734
Parse tree node for SHOW OPEN TABLES statement.
Definition: parse_tree_nodes.h:3756
PT_show_open_tables(const POS &pos, char *opt_db, const LEX_STRING &wild, Item *where)
Definition: parse_tree_nodes.h:3758
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2840
Sql_cmd_show_open_tables m_sql_cmd
Definition: parse_tree_nodes.h:3766
Parse tree node for SHOW PARSE_TREE statement.
Definition: parse_tree_nodes.h:3796
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:4708
Parse_tree_root *const m_parse_tree_stmt
Definition: parse_tree_nodes.h:3805
Sql_cmd_show_parse_tree m_sql_cmd
Definition: parse_tree_nodes.h:3806
PT_show_parse_tree(const POS &pos, Parse_tree_root *parse_tree_stmt)
Definition: parse_tree_nodes.h:3798
Parse tree node for SHOW PLUGINS statement.
Definition: parse_tree_nodes.h:3771
Sql_cmd_show_plugins m_sql_cmd
Definition: parse_tree_nodes.h:3778
PT_show_plugins(const POS &pos)
Definition: parse_tree_nodes.h:3773
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2858
Parse tree node for SHOW PRIVILEGES statement.
Definition: parse_tree_nodes.h:3783
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2867
PT_show_privileges(const POS &pos)
Definition: parse_tree_nodes.h:3785
Sql_cmd_show_privileges m_sql_cmd
Definition: parse_tree_nodes.h:3791
Parse tree node for SHOW FUNCTION CODE statement.
Definition: parse_tree_nodes.h:3811
PT_show_procedure_code(const POS &pos, const sp_name *procedure_name)
Definition: parse_tree_nodes.h:3813
Parse tree node for SHOW PROCESSLIST statement.
Definition: parse_tree_nodes.h:3819
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2874
Sql_cmd_show_processlist m_sql_cmd
Definition: parse_tree_nodes.h:3827
PT_show_processlist(const POS &pos, bool verbose)
Definition: parse_tree_nodes.h:3821
Parse tree node for SHOW PROFILE statement.
Definition: parse_tree_nodes.h:3832
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2897
uint m_opt_profile_options
Definition: parse_tree_nodes.h:3845
Sql_cmd_show_profile m_sql_cmd
Definition: parse_tree_nodes.h:3849
PT_show_profile(const POS &pos, uint opt_profile_options=0, my_thread_id opt_query_id=0, PT_limit_clause *opt_limit_clause=nullptr)
Definition: parse_tree_nodes.h:3834
my_thread_id m_opt_query_id
Definition: parse_tree_nodes.h:3846
PT_limit_clause *const m_opt_limit_clause
Definition: parse_tree_nodes.h:3847
Parse tree node for SHOW PROFILES statement.
Definition: parse_tree_nodes.h:3854
PT_show_profiles(const POS &pos)
Definition: parse_tree_nodes.h:3856
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2912
Sql_cmd_show_profiles m_sql_cmd
Definition: parse_tree_nodes.h:3861
Parse tree node for SHOW RELAYLOG EVENTS statement.
Definition: parse_tree_nodes.h:3866
Sql_cmd_show_relaylog_events m_sql_cmd
Definition: parse_tree_nodes.h:3884
PT_show_relaylog_events(const POS &pos, const LEX_STRING opt_log_file_name={}, PT_limit_clause *opt_limit_clause=nullptr, LEX_CSTRING opt_channel_name={})
Definition: parse_tree_nodes.h:3868
PT_limit_clause *const m_opt_limit_clause
Definition: parse_tree_nodes.h:3881
const LEX_STRING m_opt_log_file_name
Definition: parse_tree_nodes.h:3880
const LEX_CSTRING m_opt_channel_name
Definition: parse_tree_nodes.h:3882
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2919
Parse tree node for SHOW REPLICA STATUS statement.
Definition: parse_tree_nodes.h:3901
Sql_cmd_show_replica_status m_sql_cmd
Definition: parse_tree_nodes.h:3912
const LEX_CSTRING m_opt_channel_name
Definition: parse_tree_nodes.h:3910
PT_show_replica_status(const POS &pos, LEX_CSTRING opt_channel_name={})
Definition: parse_tree_nodes.h:3903
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2939
Parse tree node for SHOW REPLICAS statement.
Definition: parse_tree_nodes.h:3889
Sql_cmd_show_replicas m_sql_cmd
Definition: parse_tree_nodes.h:3896
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2932
PT_show_replicas(const POS &pos)
Definition: parse_tree_nodes.h:3891
Parse tree node for SHOW FUNCTION/PROCEDURE CODE statements.
Definition: parse_tree_nodes.h:3346
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2890
Sql_cmd_show_routine_code m_sql_cmd
Definition: parse_tree_nodes.h:3355
PT_show_routine_code(const POS &pos, enum_sql_command sql_command, const sp_name *routine_name)
Definition: parse_tree_nodes.h:3348
Base class for Parse tree nodes of SHOW statements with schema parameter.
Definition: parse_tree_nodes.h:3311
char * m_opt_db
Optional schema name in FROM/IN clause.
Definition: parse_tree_nodes.h:3322
PT_show_schema_base(const POS &pos, enum_sql_command sql_command, char *opt_db, const LEX_STRING &wild, Item *where)
Definition: parse_tree_nodes.h:3313
Item * m_where
Definition: parse_tree_nodes.h:3325
LEX_STRING m_wild
Wild or where clause used in the statement.
Definition: parse_tree_nodes.h:3324
Parse tree node for SHOW STATUS FUNCTION statement.
Definition: parse_tree_nodes.h:3936
Sql_cmd_show_status_func m_sql_cmd
Definition: parse_tree_nodes.h:3944
PT_show_status_func(const POS &pos, const LEX_STRING &wild, Item *where)
Definition: parse_tree_nodes.h:3938
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2964
Parse tree node for SHOW STATUS PROCEDURE statement.
Definition: parse_tree_nodes.h:3949
PT_show_status_proc(const POS &pos, const LEX_STRING &wild, Item *where)
Definition: parse_tree_nodes.h:3951
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2977
Sql_cmd_show_status_proc m_sql_cmd
Definition: parse_tree_nodes.h:3957
Parse tree node for SHOW STATUS statement.
Definition: parse_tree_nodes.h:3917
enum_var_type m_var_type
Definition: parse_tree_nodes.h:3931
Sql_cmd_show_status m_sql_cmd
Definition: parse_tree_nodes.h:3929
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2948
PT_show_status(const POS &pos, enum_var_type var_type, const LEX_STRING &wild, Item *where)
Definition: parse_tree_nodes.h:3919
Base class for Parse tree nodes of SHOW COLUMNS/SHOW INDEX statements.
Definition: parse_tree_nodes.h:3330
bool make_table_base_cmd(THD *thd, bool *temporary)
Definition: parse_tree_nodes.cc:2483
PT_show_table_base(const POS &pos, enum_sql_command sql_command, Table_ident *table_ident, const LEX_STRING &wild, Item *where)
Definition: parse_tree_nodes.h:3332
Table_ident * m_table_ident
Table used in the statement.
Definition: parse_tree_nodes.h:3341
Parse tree node for SHOW TABLE STATUS statement.
Definition: parse_tree_nodes.h:3962
Sql_cmd_show_table_status m_sql_cmd
Definition: parse_tree_nodes.h:3972
PT_show_table_status(const POS &pos, char *opt_db, const LEX_STRING &wild, Item *where)
Definition: parse_tree_nodes.h:3964
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:2990
Parse tree node for SHOW TABLES statement.
Definition: parse_tree_nodes.h:3977
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:3005
Show_cmd_type m_show_cmd_type
Definition: parse_tree_nodes.h:3989
PT_show_tables(const POS &pos, Show_cmd_type show_cmd_type, char *opt_db, const LEX_STRING &wild, Item *where)
Definition: parse_tree_nodes.h:3979
Sql_cmd_show_tables m_sql_cmd
Definition: parse_tree_nodes.h:3987
Parse tree node for SHOW TRIGGERS statement.
Definition: parse_tree_nodes.h:3994
PT_show_triggers(const POS &pos, bool full, char *opt_db, const LEX_STRING &wild, Item *where)
Definition: parse_tree_nodes.h:3996
bool m_full
Definition: parse_tree_nodes.h:4006
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:3021
Sql_cmd_show_triggers m_sql_cmd
Definition: parse_tree_nodes.h:4004
Parse tree node for SHOW VARIABLES statement.
Definition: parse_tree_nodes.h:4011
enum_var_type m_var_type
Definition: parse_tree_nodes.h:4025
Sql_cmd_show_variables m_sql_cmd
Definition: parse_tree_nodes.h:4023
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:3036
PT_show_variables(const POS &pos, enum_var_type var_type, const LEX_STRING &wild, Item *where)
Definition: parse_tree_nodes.h:4013
Parse tree node for SHOW WARNINGS statement.
Definition: parse_tree_nodes.h:4030
PT_limit_clause *const m_opt_limit_clause
Definition: parse_tree_nodes.h:4039
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:3052
Sql_cmd_show_warnings m_sql_cmd
Definition: parse_tree_nodes.h:4041
PT_show_warnings(const POS &pos, PT_limit_clause *opt_limit_clause=nullptr)
Definition: parse_tree_nodes.h:4032
Top-level node for the SHUTDOWN statement.
Definition: parse_tree_nodes.h:2143
Sql_cmd * make_cmd(THD *) override
Definition: parse_tree_nodes.h:2147
Sql_cmd_shutdown sql_cmd
Definition: parse_tree_nodes.h:2144
Definition: parse_tree_nodes.h:1214
PT_start_option_value_list_following_option_type_eq(const POS &pos, PT_set_scoped_system_variable *head_arg, const POS &head_pos_arg, PT_option_value_list_head *opt_tail_arg)
Definition: parse_tree_nodes.h:1222
POS head_pos
Definition: parse_tree_nodes.h:1218
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:4190
PT_start_option_value_list_following_option_type super
Definition: parse_tree_nodes.h:1215
PT_option_value_list_head * opt_tail
Definition: parse_tree_nodes.h:1219
PT_set_scoped_system_variable * head
Definition: parse_tree_nodes.h:1217
Definition: parse_tree_nodes.h:1234
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:4204
PT_start_option_value_list_following_option_type_transaction(const POS &pos, PT_transaction_characteristics *characteristics_arg, const POS &characteristics_pos_arg)
Definition: parse_tree_nodes.h:1241
PT_transaction_characteristics * characteristics
Definition: parse_tree_nodes.h:1237
PT_start_option_value_list_following_option_type super
Definition: parse_tree_nodes.h:1235
POS characteristics_pos
Definition: parse_tree_nodes.h:1238
Definition: parse_tree_nodes.h:1207
PT_start_option_value_list_following_option_type(const POS &pos)
Definition: parse_tree_nodes.h:1209
Definition: parse_tree_nodes.h:1123
PT_start_option_value_list super
Definition: parse_tree_nodes.h:1124
POS head_pos
Definition: parse_tree_nodes.h:1127
PT_start_option_value_list_no_type(const POS &pos, PT_option_value_no_option_type *head_arg, const POS &head_pos_arg, PT_option_value_list_head *tail_arg)
Definition: parse_tree_nodes.h:1131
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:4144
PT_option_value_list_head * tail
Definition: parse_tree_nodes.h:1128
PT_option_value_no_option_type * head
Definition: parse_tree_nodes.h:1126
Definition: parse_tree_nodes.h:1189
PT_transaction_characteristics * characteristics
Definition: parse_tree_nodes.h:1192
PT_start_option_value_list super
Definition: parse_tree_nodes.h:1190
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:4175
POS end_pos
Definition: parse_tree_nodes.h:1193
PT_start_option_value_list_transaction(const POS &pos, PT_transaction_characteristics *characteristics_arg, const POS &end_pos_arg)
Definition: parse_tree_nodes.h:1196
Definition: parse_tree_nodes.h:1251
PT_start_option_value_list super
Definition: parse_tree_nodes.h:1252
PT_start_option_value_list_following_option_type * list
Definition: parse_tree_nodes.h:1255
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:4216
PT_start_option_value_list_type(const POS &pos, enum_var_type type_arg, PT_start_option_value_list_following_option_type *list_arg)
Definition: parse_tree_nodes.h:1258
enum_var_type type
Definition: parse_tree_nodes.h:1254
Definition: parse_tree_nodes.h:1013
PT_start_option_value_list(const POS &pos)
Definition: parse_tree_nodes.h:1015
Definition: parse_tree_nodes.h:3219
PT_static_privilege(const POS &pos, const POS &errpos, uint grant, const Mem_root_array< LEX_CSTRING > *columns=nullptr)
Definition: parse_tree_nodes.h:3224
const Mem_root_array< LEX_CSTRING > * columns
Definition: parse_tree_nodes.h:3221
const uint grant
Definition: parse_tree_nodes.h:3220
Privilege * get_privilege(THD *thd) override
Definition: parse_tree_nodes.cc:4664
Definition: parse_tree_nodes.h:1774
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:4411
Parse_tree_node super
Definition: parse_tree_nodes.h:1775
PT_query_expression_body * qe
Definition: parse_tree_nodes.h:1777
bool m_is_derived_table
Definition: parse_tree_nodes.h:1781
Query_block * value()
Definition: parse_tree_nodes.h:1791
Query_block * query_block
Definition: parse_tree_nodes.h:1778
PT_subquery(const POS &pos, PT_query_expression_body *query_expression)
Definition: parse_tree_nodes.h:1783
Definition: parse_tree_nodes.h:2470
PT_table_constraint_def(const POS &pos)
Definition: parse_tree_nodes.h:2472
Definition: parse_tree_nodes.h:185
~PT_table_ddl_stmt_base() override=0
Alter_info m_alter_info
Definition: parse_tree_nodes.h:193
PT_table_ddl_stmt_base(const POS &pos, MEM_ROOT *mem_root)
Definition: parse_tree_nodes.h:187
Base class for column/constraint definitions in CREATE TABLE.
Definition: parse_tree_nodes.h:2465
PT_table_element(const POS &pos)
Definition: parse_tree_nodes.h:2467
Definition: parse_tree_nodes.h:507
Item * m_path
Definition: parse_tree_nodes.h:524
const LEX_STRING m_table_alias
Definition: parse_tree_nodes.h:526
Item * m_expr
Definition: parse_tree_nodes.h:523
PT_table_reference super
Definition: parse_tree_nodes.h:508
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:1356
Mem_root_array< PT_json_table_column * > * m_nested_columns
Definition: parse_tree_nodes.h:525
PT_table_factor_function(const POS &pos, Item *expr, Item *path, Mem_root_array< PT_json_table_column * > *nested_cols, const LEX_STRING &table_alias)
Definition: parse_tree_nodes.h:511
Definition: parse_tree_nodes.h:563
PT_joined_table * m_joined_table
Definition: parse_tree_nodes.h:573
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:1466
PT_table_reference super
Definition: parse_tree_nodes.h:564
PT_table_factor_joined_table(const POS &pos, PT_joined_table *joined_table)
Definition: parse_tree_nodes.h:567
Definition: parse_tree_nodes.h:472
const char *const opt_table_alias
Definition: parse_tree_nodes.h:477
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:3873
void add_json_info(Json_object *obj) override
Add all the node-specific json fields.
Definition: parse_tree_nodes.cc:3900
Table_ident * table_ident
Definition: parse_tree_nodes.h:475
PT_table_factor_table_ident(const POS &pos, Table_ident *table_ident_arg, List< String > *opt_use_partition_arg, const LEX_CSTRING &opt_table_alias_arg, List< Index_hint > *opt_key_definition_arg, PT_tablesample *opt_tablesample_arg)
Definition: parse_tree_nodes.h:482
PT_table_reference super
Definition: parse_tree_nodes.h:473
List< Index_hint > * opt_key_definition
Definition: parse_tree_nodes.h:478
PT_tablesample * opt_tablesample
Definition: parse_tree_nodes.h:479
List< String > * opt_use_partition
Definition: parse_tree_nodes.h:476
Definition: parse_tree_nodes.h:782
Table_ident_list m_tables
Definition: parse_tree_nodes.h:798
bool raise_error(THD *thd, const Table_ident *name, int error)
Definition: parse_tree_nodes.cc:4027
bool set_lock_for_tables(Parse_context *pc) override
Definition: parse_tree_nodes.cc:2462
PT_table_locking_clause(const POS &pos, Lock_strength strength, Mem_root_array_YY< Table_ident * > tables, Locked_row_action action)
Definition: parse_tree_nodes.h:786
Mem_root_array_YY< Table_ident * > Table_ident_list
Definition: parse_tree_nodes.h:784
Definition: parse_tree_nodes.h:529
PT_table_reference super
Definition: parse_tree_nodes.h:530
PT_table_reference_list_parens(const POS &pos, const Mem_root_array_YY< PT_table_reference * > table_list)
Definition: parse_tree_nodes.h:535
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:3911
Mem_root_array_YY< PT_table_reference * > table_list
Definition: parse_tree_nodes.h:532
Definition: parse_tree_nodes.h:451
PT_table_reference(const POS &pos)
Definition: parse_tree_nodes.h:453
Table_ref * m_table_ref
Definition: parse_tree_nodes.h:455
virtual PT_joined_table * add_cross_join(PT_cross_join *cj)
Lets us build a parse tree top-down, which is necessary due to the context-dependent nature of the jo...
Definition: parse_tree_nodes.cc:161
Definition: parse_tree_nodes.h:1589
PT_insert_values_list *const row_value_list
Definition: parse_tree_nodes.h:1592
bool is_set_operation() const override
Definition: parse_tree_nodes.h:1604
bool has_into_clause() const override
Definition: parse_tree_nodes.h:1601
PT_insert_values_list * get_row_value_list() const override
Definition: parse_tree_nodes.h:1610
bool can_absorb_order_and_limit(bool, bool) const override
True if this query expression can absorb an extraneous order by/limit clause.
Definition: parse_tree_nodes.h:1606
bool has_trailing_into_clause() const override
Definition: parse_tree_nodes.h:1602
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:1308
bool is_table_value_constructor() const override
Definition: parse_tree_nodes.h:1608
PT_query_primary super
Definition: parse_tree_nodes.h:1590
PT_table_value_constructor(const POS &pos, PT_insert_values_list *row_value_list_arg)
Definition: parse_tree_nodes.h:1595
Definition: parse_tree_nodes.h:693
PT_tablesample(const POS &pos, tablesample_type tablesample_type_arg, Item *sample_percentage)
Definition: parse_tree_nodes.h:700
Parse_tree_node super
Definition: parse_tree_nodes.h:694
tablesample_type m_sampling_type
Definition: parse_tree_nodes.h:697
Item * m_sample_percentage
Definition: parse_tree_nodes.h:698
A template for options that set HA_CREATE_INFO::table_options and also records if the option was expl...
Definition: parse_tree_nodes.h:2719
PT_create_table_option super
Definition: parse_tree_nodes.h:2720
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:2728
const Ternary_option value
Definition: parse_tree_nodes.h:2722
PT_ternary_create_table_option(const POS &pos, Ternary_option value)
Definition: parse_tree_nodes.h:2725
A template for options that set a single property in HA_CREATE_INFO, and also records if the option w...
Definition: parse_tree_nodes.h:2581
PT_traceable_create_table_option(const POS &pos, Option_type value)
Definition: parse_tree_nodes.h:2587
const Option_type value
Definition: parse_tree_nodes.h:2584
PT_create_table_option super
Definition: parse_tree_nodes.h:2582
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:2590
A template for options that set a single property in a KEY_CREATE_INFO, and also records if the optio...
Definition: parse_tree_nodes.h:2393
bool do_contextualize(Table_ddl_parse_context *pc) override
Definition: parse_tree_nodes.h:2398
Option_type m_option_value
Definition: parse_tree_nodes.h:2405
PT_traceable_index_option(const POS &pos, Option_type option_value)
Definition: parse_tree_nodes.h:2395
Definition: parse_tree_nodes.h:1154
PT_transaction_characteristic super
Definition: parse_tree_nodes.h:1155
PT_transaction_access_mode(const POS &pos, bool is_read_only)
Definition: parse_tree_nodes.h:1158
Definition: parse_tree_nodes.h:1140
int32 value
Definition: parse_tree_nodes.h:1144
Parse_tree_node super
Definition: parse_tree_nodes.h:1141
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:4156
PT_transaction_characteristic(const POS &pos, const char *name_arg, int32 value_arg)
Definition: parse_tree_nodes.h:1147
const char * name
Definition: parse_tree_nodes.h:1143
Definition: parse_tree_nodes.h:1170
PT_transaction_characteristic * opt_tail
Definition: parse_tree_nodes.h:1174
PT_transaction_characteristics(const POS &pos, PT_transaction_characteristic *head_arg, PT_transaction_characteristic *opt_tail_arg)
Definition: parse_tree_nodes.h:1177
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.h:1182
PT_transaction_characteristic * head
Definition: parse_tree_nodes.h:1173
Parse_tree_node super
Definition: parse_tree_nodes.h:1171
Definition: parse_tree_nodes.h:5039
PT_truncate_table_stmt(const POS &pos, Table_ident *table)
Definition: parse_tree_nodes.h:5041
Sql_cmd_truncate_table m_cmd_truncate_table
Definition: parse_tree_nodes.h:5049
Table_ident * m_table
Definition: parse_tree_nodes.h:5047
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:3392
Base class for all column type nodes.
Definition: parse_tree_column_attrs.h:556
Definition: parse_tree_nodes.h:1846
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:1808
enum Setop_type type() const override
Definition: parse_tree_nodes.h:1852
PT_set_operation(const POS &pos, PT_query_expression_body *lhs, bool is_distinct, PT_query_expression_body *rhs, bool is_rhs_in_parentheses=false)
Definition: parse_tree_nodes.h:1798
Top-level node for the UPDATE statement.
Definition: parse_tree_nodes.h:1999
PT_with_clause * m_with_clause
Definition: parse_tree_nodes.h:2002
Item * opt_limit_clause
Definition: parse_tree_nodes.h:2011
PT_update(const POS &pos, PT_with_clause *with_clause_arg, PT_hint_list *opt_hints_arg, thr_lock_type opt_low_priority_arg, bool opt_ignore_arg, const Mem_root_array_YY< PT_table_reference * > &join_table_list_arg, PT_item_list *column_list_arg, PT_item_list *value_list_arg, Item *opt_where_clause_arg, PT_order *opt_order_clause_arg, Item *opt_limit_clause_arg)
Definition: parse_tree_nodes.h:2014
Sql_cmd * make_cmd(THD *thd) override
Definition: parse_tree_nodes.cc:976
Mem_root_array_YY< PT_table_reference * > join_table_list
Definition: parse_tree_nodes.h:2006
PT_hint_list * opt_hints
Definition: parse_tree_nodes.h:2003
bool opt_ignore
Definition: parse_tree_nodes.h:2005
PT_item_list * value_list
Definition: parse_tree_nodes.h:2008
thr_lock_type opt_low_priority
Definition: parse_tree_nodes.h:2004
PT_item_list * column_list
Definition: parse_tree_nodes.h:2007
Parse_tree_root super
Definition: parse_tree_nodes.h:2000
PT_order * opt_order_clause
Definition: parse_tree_nodes.h:2010
Item * opt_where_clause
Definition: parse_tree_nodes.h:2009
Parse tree node for a list of window definitions corresponding to a <window clause> in SQL 2003.
Definition: parse_tree_window.h:63
Represents the WITH clause: WITH [...], [...] SELECT ..., ^^^^^^^^^^^^^^^^^.
Definition: parse_tree_nodes.h:366
const Table_ref * m_most_inner_in_parsing
The innermost CTE reference which we're parsing at the moment.
Definition: parse_tree_nodes.h:415
void print(const THD *thd, String *str, enum_query_type query_type)
Definition: parse_tree_nodes.cc:2088
bool do_contextualize(Parse_context *pc) override
Definition: parse_tree_nodes.cc:2077
void leave_parsing_definition(const Table_ref *old)
Definition: parse_tree_nodes.h:396
Parse_tree_node super
Definition: parse_tree_nodes.h:367
PT_with_clause(const POS &pos, const PT_with_list *l, bool r)
Definition: parse_tree_nodes.h:370
void add_json_info(Json_object *obj) override
Add all the node-specific json fields.
Definition: parse_tree_nodes.h:402
const PT_with_list *const m_list
All CTEs of this clause.
Definition: parse_tree_nodes.h:408
const Table_ref * enter_parsing_definition(Table_ref *tl)
Call this to record in the WITH clause that we are contextualizing the CTE definition inserted in tab...
Definition: parse_tree_nodes.h:391
const bool m_recursive
True if the user has specified the RECURSIVE keyword.
Definition: parse_tree_nodes.h:410
Represents the WITH list.
Definition: parse_tree_nodes.h:344
Mem_root_array< PT_common_table_expr * > m_elements
Definition: parse_tree_nodes.h:358
Parse_tree_node super
Definition: parse_tree_nodes.h:345
bool push_back(PT_common_table_expr *el)
Definition: parse_tree_nodes.cc:2026
PT_with_list(const POS &pos, MEM_ROOT *mem_root)
Definition: parse_tree_nodes.h:350
const Mem_root_array< PT_common_table_expr * > & elements() const
Definition: parse_tree_nodes.h:353
Base class for parse tree nodes (excluding the Parse_tree_root hierarchy)
Definition: parse_tree_node_base.h:231
virtual bool contextualize(Context *pc) final
Definition: parse_tree_node_base.h:319
bool is_contextualized() const
Definition: parse_tree_node_base.h:309
void error(Context *pc, const POS &pos) const
syntax_error() function replacement for deferred reporting of syntax errors
Definition: parse_tree_node_base.h:344
virtual bool do_contextualize(Context *pc)
Do all context-sensitive things and mark the node as contextualized.
Definition: parse_tree_node_base.h:283
Base class for all top-level nodes of SQL statements.
Definition: parse_tree_nodes.h:162
Parse_tree_root()=default
void operator=(const Parse_tree_root &)=delete
Parse_tree_root(const Parse_tree_root &)=delete
virtual ~Parse_tree_root()=default
Parse_tree_root(const POS &pos)
Definition: parse_tree_nodes.h:168
virtual std::string get_printable_parse_tree(THD *thd)
Definition: parse_tree_nodes.h:178
POS m_pos
Textual location of a token just parsed.
Definition: parse_tree_nodes.h:173
virtual Sql_cmd * make_cmd(THD *thd)=0
This class represents a query block, aka a query specification, which is a query consisting of a SELE...
Definition: sql_lex.h:1163
bool clear_correlated_query_blocks()
Empties all correlated query blocks defined within the query expression; that is, correlated CTEs def...
Definition: sql_union.cc:1628
Common base class for n-ary set operations, including unary.
Definition: query_term.h:402
Simple intrusive linked list.
Definition: sql_list.h:47
Class to represent the check constraint specifications obtained from the SQL statement parse.
Definition: sql_check_constraint.h:43
Item * check_expr
Check constraint expression.
Definition: sql_check_constraint.h:80
LEX_STRING column_name
Name of the column if check clause is defined at the column level.
Definition: sql_check_constraint.h:83
bool is_enforced
Check constraint state (enforced/not enforced)
Definition: sql_check_constraint.h:86
LEX_STRING name
Name of the check constraint.
Definition: sql_check_constraint.h:77
Definition: sql_admin.h:409
Class that represents the ALTER TABLE t1 ANALYZE PARTITION p statement.
Definition: sql_partition_admin.h:53
Class that represents the ALTER TABLE t1 CHECK PARTITION p statement.
Definition: sql_partition_admin.h:75
Class that represents the ALTER TABLE t1 EXCHANGE PARTITION p WITH TABLE t2 statement.
Definition: sql_partition_admin.h:39
Class that represents the ALTER TABLE t1 OPTIMIZE PARTITION p statement.
Definition: sql_partition_admin.h:91
Class that represents the ALTER TABLE t1 REPAIR PARTITION p statement.
Definition: sql_partition_admin.h:106
Class that represents the ALTER TABLE t1 TRUNCATE PARTITION p statement.
Definition: sql_partition_admin.h:121
Represents the generic ALTER TABLE statement.
Definition: sql_alter.h:617
Sql_cmd_alter_user_default_role ALTER USER ... DEFAULT ROLE ... statement.
Definition: sql_admin.h:368
Histogram_command
Specifies which (if any) of the commands UPDATE HISTOGRAM or DROP HISTOGRAM that is specified after A...
Definition: sql_admin.h:71
Sql_cmd_create_role represents the CREATE ROLE ... statement.
Definition: sql_admin.h:288
Definition: sql_cmd_srs.h:56
Represents ALTER TABLE IMPORT/DISCARD TABLESPACE statements.
Definition: sql_alter.h:628
Sql_cmd_drop_role represents the DROP ROLE ... statement.
Definition: sql_admin.h:308
Definition: sql_cmd_srs.h:110
Definition: opt_explain.h:204
Definition: sql_load.h:49
Sql_cmd_restart_server represents the RESTART server statement.
Definition: sql_restart_server.h:41
Represents ALTER TABLE SECONDARY_LOAD/SECONDARY_UNLOAD statements.
Definition: sql_alter.h:641
Sql_cmd_set_role represents the SET ROLE ... statement.
Definition: sql_admin.h:260
Represents SHOW BINARY LOG STATUS statement.
Definition: sql_show.h:442
Following are all subclasses of class Sql_cmd_show, in alphabetical order.
Definition: sql_show.h:236
Represents SHOW BINARY LOGS statement.
Definition: sql_show.h:251
Represents SHOW CHARACTER SET statement.
Definition: sql_show.h:260
Represents SHOW COLLATION statement.
Definition: sql_show.h:267
Represents SHOW COLUMNS statement.
Definition: sql_show.h:274
Represents SHOW CREATE DATABASE statement.
Definition: sql_show.h:281
Represents SHOW CREATE EVENT statement.
Definition: sql_show.h:290
Represents SHOW CREATE FUNCTION statement.
Definition: sql_show.h:299
Represents SHOW CREATE PROCEDURE statement.
Definition: sql_show.h:309
Represents SHOW CREATE TABLE/VIEW statement.
Definition: sql_show.h:319
Represents SHOW CREATE TRIGGER statement.
Definition: sql_show.h:335
Represents SHOW CREATE USER statement.
Definition: sql_show.h:345
Represents SHOW DATABASES statement.
Definition: sql_show.h:354
Represents SHOW ENGINE LOGS statement.
Definition: sql_show.h:362
Represents SHOW ENGINE MUTEX statement.
Definition: sql_show.h:371
Represents SHOW ENGINE STATUS statement.
Definition: sql_show.h:380
Represents SHOW STORAGE ENGINES statement.
Definition: sql_show.h:390
Represents SHOW ERRORS statement.
Definition: sql_show.h:397
Represents SHOW EVENTS statement.
Definition: sql_show.h:407
Represents SHOW GRANTS statement.
Definition: sql_show.h:417
Represents the SHOW INDEX statement.
Definition: sql_show.h:435
Represents SHOW OPEN TABLES statement.
Definition: sql_show.h:452
Represents SHOW PARSE_TREE statement.
Definition: sql_show.h:494
Represents SHOW PLUGINS statement.
Definition: sql_show.h:459
Represents SHOW PRIVILEGES statement.
Definition: sql_show.h:466
Represents SHOW PROCESSLIST statement.
Definition: sql_show.h:474
Represents SHOW PROFILE statement.
Definition: sql_show.h:501
Represents SHOW PROFILES statement.
Definition: sql_show.h:508
Represents SHOW RELAYLOG EVENTS statement.
Definition: sql_show.h:516
Represents SHOW REPLICA STATUS statement.
Definition: sql_show.h:540
Represents SHOW REPLICAS statement.
Definition: sql_show.h:531
Represents SHOW FUNCTION CODE and SHOW PROCEDURE CODE statements.
Definition: sql_show.h:220
Represents SHOW STATUS FUNCTION statement.
Definition: sql_show.h:558
Represents SHOW STATUS PROCEDURE statement.
Definition: sql_show.h:565
Represents SHOW STATUS statement.
Definition: sql_show.h:550
Represents SHOW TABLE STATUS statement.
Definition: sql_show.h:572
Represents SHOW TABLES statement.
Definition: sql_show.h:580
Represents SHOW TRIGGERS statement.
Definition: sql_show.h:587
Represents SHOW VARIABLES statement.
Definition: sql_show.h:594
Represents SHOW WARNINGS statement.
Definition: sql_show.h:601
Sql_cmd_shutdown represents the SHUTDOWN statement.
Definition: sql_admin.h:249
Sql_cmd_truncate_table represents the TRUNCATE statement.
Definition: sql_truncate.h:44
Representation of an SQL command.
Definition: sql_cmd.h:83
Using this class is fraught with peril, and you need to be very careful when doing so.
Definition: sql_string.h:167
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
Definition: sql_lex.h:296
Represents the (explicit) window of a SQL 2003 section 7.11 <window clause>, or the implicit (inlined...
Definition: window.h:110
A (partial) implementation of std::deque allocating its blocks on a MEM_ROOT.
Definition: mem_root_deque.h:111
Definition: partition_info.h:209
uint num_parts
Definition: partition_info.h:370
Sql_cmd_alter_resource_group represents ALTER RESOURCE GROUP statement.
Definition: resource_group_sql_cmd.h:77
Sql_cmd_create_resource_group represents CREATE RESOURCE GROUP statement.
Definition: resource_group_sql_cmd.h:46
Sql_cmd_drop_resource_group represents DROP RESOURCE GROUP statement.
Definition: resource_group_sql_cmd.h:111
Sql_cmd_set_resource_group represents SET RESOURCE GROUP statement.
Definition: resource_group_sql_cmd.h:133
sp_head represents one instance of a stored program.
Definition: sp_head.h:383
Definition: sp_head.h:123
Used to hold information about file and file structure in exchange via non-DB file (....
Definition: sql_exchange.h:79
Field_separators field
Definition: sql_exchange.h:81
const CHARSET_INFO * cs
Definition: sql_exchange.h:87
Line_separators line
Definition: sql_exchange.h:82
static MEM_ROOT mem_root
Definition: client_plugin.cc:114
enum_query_type
Query type constants (usable as bitmap flags).
Definition: enum_query_type.h:31
void my_error(int nr, myf MyFlags,...)
Fill in and print a previously registered error message.
Definition: my_error.cc:216
bool make_subquery_node(THD *thd, PT_subquery **node)
Definition: sql_parse.cc:5729
bool lookup(Table_ref *tl, PT_common_table_expr **found)
Looks up a table reference into the list of CTEs.
Definition: sql_parse.cc:5830
bool match_table_ref(Table_ref *tl, bool in_self, bool *found)
Definition: sql_parse.cc:5911
PT_traceable_create_table_option< TYPE_AND_REF(HA_CREATE_INFO::avg_row_length), HA_CREATE_USED_AVG_ROW_LENGTH > PT_create_avg_row_length_option
Node for the AVG_ROW_LENGTH_ROWS [=] <integer> table option.
Definition: parse_tree_nodes.h:2625
PT_ternary_create_table_option< HA_CREATE_USED_PACK_KEYS, 0, HA_OPTION_PACK_KEYS, HA_OPTION_NO_PACK_KEYS > PT_create_pack_keys_option
Node for the PACK_KEYS [=] 1|0|DEFAULT table option.
Definition: parse_tree_nodes.h:2763
PT_traceable_create_table_option< TYPE_AND_REF(HA_CREATE_INFO::auto_increment_value), HA_CREATE_USED_AUTO > PT_create_auto_increment_option
Node for the AUTO_INCREMENT [=] <integer> table option.
Definition: parse_tree_nodes.h:2670
PT_bool_create_table_option< HA_CREATE_USED_CHECKSUM, HA_OPTION_CHECKSUM, HA_OPTION_NO_CHECKSUM > PT_create_checksum_option
Node for the CHECKSUM|TABLE_CHECKSUM [=] 0|<not 0> table option.
Definition: parse_tree_nodes.h:2819
PT_traceable_create_table_option< TYPE_AND_REF(HA_CREATE_INFO::compress), HA_CREATE_USED_COMPRESS > PT_create_compress_option
Node for the COMPRESSION [=] <string> table option.
Definition: parse_tree_nodes.h:2652
PT_traceable_create_table_option< TYPE_AND_REF(HA_CREATE_INFO::encrypt_type), HA_CREATE_USED_ENCRYPT > PT_create_encryption_option
Node for the ENGRYPTION [=] <string> table option.
Definition: parse_tree_nodes.h:2661
PT_ternary_create_table_option< HA_CREATE_USED_STATS_PERSISTENT, 0, HA_OPTION_STATS_PERSISTENT, HA_OPTION_NO_STATS_PERSISTENT > PT_create_stats_persistent_option
Node for the STATS_PERSISTENT [=] 1|0|DEFAULT table option.
Definition: parse_tree_nodes.h:2780
PT_bool_create_table_option< HA_CREATE_USED_DELAY_KEY_WRITE, HA_OPTION_DELAY_KEY_WRITE, HA_OPTION_NO_DELAY_KEY_WRITE > PT_create_delay_key_write_option
Node for the DELAY_KEY_WRITE [=] 0|<not 0> table option.
Definition: parse_tree_nodes.h:2834
PT_traceable_create_table_option< TYPE_AND_REF(HA_CREATE_INFO::comment), HA_CREATE_USED_COMMENT > PT_create_commen_option
Node for the COMMENT [=] <string> table option.
Definition: parse_tree_nodes.h:2643
PT_traceable_create_table_option< TYPE_AND_REF(HA_CREATE_INFO::max_rows), HA_CREATE_USED_MAX_ROWS > PT_create_max_rows_option
Node for the MAX_ROWS [=] <integer> table option.
Definition: parse_tree_nodes.h:2607
PT_traceable_create_table_option< TYPE_AND_REF(HA_CREATE_INFO::min_rows), HA_CREATE_USED_MIN_ROWS > PT_create_min_rows_option
Node for the MIN_ROWS [=] <integer> table option.
Definition: parse_tree_nodes.h:2616
PT_traceable_create_table_option< TYPE_AND_REF(HA_CREATE_INFO::password), HA_CREATE_USED_PASSWORD > PT_create_password_option
Node for the PASSWORD [=] <string> table option.
Definition: parse_tree_nodes.h:2634
static int flags[50]
Definition: hp_test1.cc:40
static void start(mysql_harness::PluginFuncEnv *env)
Definition: http_auth_backend_plugin.cc:180
fk_match_opt
Definition: key_spec.h:58
enum_order
Definition: key_spec.h:65
@ ORDER_NOT_RELEVANT
Definition: key_spec.h:65
@ ORDER_ASC
Definition: key_spec.h:65
@ ORDER_DESC
Definition: key_spec.h:65
keytype
Definition: key_spec.h:40
fk_option
Definition: key_spec.h:49
constexpr const LEX_STRING NULL_STR
Definition: lex_string.h:46
#define comment
Definition: lexyy.cc:959
This file follows Google coding style, except for the name MEM_ROOT (which is kept for historical rea...
std::unique_ptr< T, Destroy_only< T > > unique_ptr_destroy_only
std::unique_ptr, but only destroying.
Definition: my_alloc.h:477
This file includes constants used by all storage engines.
#define HA_OPTION_NO_DELAY_KEY_WRITE
DELAY_KEY_WRITE=0 option was specified.
Definition: my_base.h:720
#define HA_OPTION_NO_PACK_KEYS
PACK_KEYS=0 option was specified.
Definition: my_base.h:663
#define HA_OPTION_CHECKSUM
CHECKSUM=1 option was specified.
Definition: my_base.h:648
#define HA_OPTION_NO_CHECKSUM
CHECKSUM=0 option was specified.
Definition: my_base.h:715
#define HA_OPTION_DELAY_KEY_WRITE
DELAY_KEY_WRITE=1 option was specified.
Definition: my_base.h:656
ha_key_alg
Definition: my_base.h:98
#define HA_OPTION_STATS_PERSISTENT
STATS_PERSISTENT=1 has been specified in the SQL command (either CREATE or ALTER TABLE).
Definition: my_base.h:688
ha_storage_media
Definition: my_base.h:116
#define HA_OPTION_PACK_KEYS
PACK_KEYS=1 option was specified.
Definition: my_base.h:616
#define HA_OPTION_NO_STATS_PERSISTENT
STATS_PERSISTENT=0 has been specified in CREATE/ALTER TABLE.
Definition: my_base.h:695
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
unsigned char uchar
Definition: my_inttypes.h:52
#define MYF(v)
Definition: my_inttypes.h:97
int32_t int32
Definition: my_inttypes.h:66
enum_sql_command
Definition: my_sqlcommand.h:46
@ SQLCOM_SHOW_ENGINE_LOGS
Definition: my_sqlcommand.h:64
@ SQLCOM_SHOW_GRANTS
Definition: my_sqlcommand.h:70
@ SQLCOM_SHOW_CREATE_DB
Definition: my_sqlcommand.h:74
@ SQLCOM_SHOW_STATUS_FUNC
Definition: my_sqlcommand.h:145
@ SQLCOM_SHOW_CREATE_FUNC
Definition: my_sqlcommand.h:143
@ SQLCOM_SHOW_CREATE_TRIGGER
Definition: my_sqlcommand.h:174
@ SQLCOM_SHOW_ENGINE_MUTEX
Definition: my_sqlcommand.h:66
@ SQLCOM_SHOW_PARSE_TREE
Definition: my_sqlcommand.h:206
@ SQLCOM_SHOW_PRIVILEGES
Definition: my_sqlcommand.h:129
@ SQLCOM_SHOW_BINLOGS
Definition: my_sqlcommand.h:115
@ SQLCOM_SHOW_BINLOG_EVENTS
Definition: my_sqlcommand.h:123
@ SQLCOM_SHOW_REPLICAS
Definition: my_sqlcommand.h:120
@ SQLCOM_SHOW_WARNS
Definition: my_sqlcommand.h:125
@ SQLCOM_SHOW_STATUS_PROC
Definition: my_sqlcommand.h:144
@ SQLCOM_SHOW_PLUGINS
Definition: my_sqlcommand.h:165
@ SQLCOM_SHOW_PROFILE
Definition: my_sqlcommand.h:175
@ SQLCOM_SHOW_DATABASES
Definition: my_sqlcommand.h:58
@ SQLCOM_SHOW_CHARSETS
Definition: my_sqlcommand.h:72
@ SQLCOM_SHOW_OPEN_TABLES
Definition: my_sqlcommand.h:116
@ SQLCOM_SHOW_TABLE_STATUS
Definition: my_sqlcommand.h:75
@ SQLCOM_SELECT
Definition: my_sqlcommand.h:47
@ SQLCOM_SHOW_ERRORS
Definition: my_sqlcommand.h:127
@ SQLCOM_SHOW_REPLICA_STATUS
Definition: my_sqlcommand.h:69
@ SQLCOM_SHOW_FIELDS
Definition: my_sqlcommand.h:60
@ SQLCOM_SHOW_CREATE_USER
Definition: my_sqlcommand.h:183
@ SQLCOM_SHOW_STATUS
Definition: my_sqlcommand.h:63
@ SQLCOM_SHOW_BINLOG_STATUS
Definition: my_sqlcommand.h:68
@ SQLCOM_SHOW_ENGINE_STATUS
Definition: my_sqlcommand.h:65
@ SQLCOM_SHOW_EVENTS
Definition: my_sqlcommand.h:173
@ SQLCOM_SHOW_CREATE_PROC
Definition: my_sqlcommand.h:142
@ SQLCOM_SHOW_COLLATIONS
Definition: my_sqlcommand.h:73
@ SQLCOM_SHOW_PROC_CODE
Definition: my_sqlcommand.h:159
@ SQLCOM_SHOW_FUNC_CODE
Definition: my_sqlcommand.h:160
@ SQLCOM_SHOW_KEYS
Definition: my_sqlcommand.h:61
@ SQLCOM_SHOW_TABLES
Definition: my_sqlcommand.h:59
@ SQLCOM_SHOW_VARIABLES
Definition: my_sqlcommand.h:62
@ SQLCOM_SHOW_CREATE_EVENT
Definition: my_sqlcommand.h:172
@ SQLCOM_SHOW_PROCESSLIST
Definition: my_sqlcommand.h:67
@ SQLCOM_SHOW_RELAYLOG_EVENTS
Definition: my_sqlcommand.h:179
@ SQLCOM_SHOW_STORAGE_ENGINES
Definition: my_sqlcommand.h:128
@ SQLCOM_SHOW_TRIGGERS
Definition: my_sqlcommand.h:76
@ SQLCOM_SHOW_CREATE
Definition: my_sqlcommand.h:71
@ SQLCOM_SHOW_PROFILES
Definition: my_sqlcommand.h:176
Common header for many mysys elements.
static my_thread_id thread_id
Definition: my_thr_init.cc:63
uint32 my_thread_id
Definition: my_thread_local.h:34
Interface for low level time utilities.
interval_type
Available interval types used in any statement.
Definition: my_time.h:455
@ INTERVAL_LAST
Definition: my_time.h:476
static bool column_names
Definition: mysql.cc:173
char * user
Definition: mysqladmin.cc:66
static bool ignore_errors
Definition: mysqlcheck.cc:62
static uint verbose
Definition: mysqlcheck.cc:66
static char * path
Definition: mysqldump.cc:149
static char * where
Definition: mysqldump.cc:152
static longlong opt_ignore_lines
Definition: mysqlimport.cc:85
static Secondary_engine * secondary_engine
Definition: mysqltest.cc:256
static char * opt_db
Definition: mysqltest.cc:196
const char * collation
Definition: audit_api_message_emit.cc:184
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1086
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
const std::string charset("charset")
std::string dir
Double write files location.
Definition: buf0dblwr.cc:77
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:76
Provides atomic access in shared-exclusive modes.
Definition: shared_spin_lock.h:79
static std::string lower(std::string_view str)
Definition: config_parser.cc:65
Definition: options.cc:57
Type
Definition: resource_group_basic_types.h:33
const char * table_name
Definition: rules_table_service.cc:56
Cursor end()
A past-the-end Cursor.
Definition: rules_table_service.cc:192
olap_type
Definition: olap.h:31
@ ROLLUP_TYPE
Definition: olap.h:31
Surrounding_context
Definition: parse_tree_node_base.h:101
bool contextualize_nodes(Mem_root_array_YY< Node_type * > nodes, Parse_context_type *pc)
Calls contextualize() on every node in the array.
Definition: parse_tree_nodes.h:150
PT_base_index_option * make_index_secondary_engine_attribute(MEM_ROOT *, LEX_CSTRING)
Factory function which instantiates PT_attribute with suitable parameters, allocates on the provided ...
Definition: parse_tree_nodes.cc:5131
PT_traceable_create_table_option< TYPE_AND_REF(HA_CREATE_INFO::row_type), HA_CREATE_USED_ROW_FORMAT > PT_create_row_format_option
Definition: parse_tree_nodes.h:2674
#define TYPE_AND_REF(x)
Definition: parse_tree_nodes.h:2598
Parse_tree_node_tmpl< Table_ddl_parse_context > Table_ddl_node
Base class for all table DDL (ALTER TABLE and CREATE TABLE) nodes.
Definition: parse_tree_nodes.h:214
decltype(HA_CREATE_INFO::table_options) table_options_t
Definition: parse_tree_nodes.h:2711
PT_traceable_create_table_option< TYPE_AND_REF(HA_CREATE_INFO::data_file_name), HA_CREATE_USED_DATADIR > PT_create_data_directory_option
Definition: parse_tree_nodes.h:2683
PT_index_option< ulong, &KEY_CREATE_INFO::block_size > PT_block_size
Definition: parse_tree_nodes.h:2409
PT_alter_tablespace_option_base * make_tablespace_engine_attribute(MEM_ROOT *, LEX_CSTRING)
Factory function which instantiates PT_attribute with suitable parameters, allocates on the provided ...
Definition: parse_tree_nodes.cc:4985
PT_index_option< LEX_CSTRING, &KEY_CREATE_INFO::comment > PT_index_comment
Definition: parse_tree_nodes.h:2411
PT_traceable_create_table_option< TYPE_AND_REF(HA_CREATE_INFO::connect_string), HA_CREATE_USED_CONNECTION > PT_create_connection_option
Definition: parse_tree_nodes.h:2695
Mem_root_array_YY< PT_base_index_option * > Index_options
Definition: parse_tree_nodes.h:2408
PT_traceable_create_table_option< TYPE_AND_REF(HA_CREATE_INFO::tablespace), HA_CREATE_USED_TABLESPACE > PT_create_tablespace_option
Definition: parse_tree_nodes.h:2691
PT_base_index_option * make_index_engine_attribute(MEM_ROOT *, LEX_CSTRING)
Factory function which instantiates PT_attribute with suitable parameters, allocates on the provided ...
Definition: parse_tree_nodes.cc:5111
To * setop_cast(PT_query_expression_body *from, bool is_distinct)
Helper function to imitate dynamic_cast for PT_set_operation hierarchy.
Definition: parse_tree_nodes.h:5589
PT_traceable_create_table_option< TYPE_AND_REF(HA_CREATE_INFO::index_file_name), HA_CREATE_USED_INDEXDIR > PT_create_index_directory_option
Definition: parse_tree_nodes.h:2687
PT_index_option< LEX_CSTRING, &KEY_CREATE_INFO::parser_name > PT_fulltext_index_parser_name
Definition: parse_tree_nodes.h:2413
PT_column_attr_base * make_column_engine_attribute(MEM_ROOT *, LEX_CSTRING)
Factory function which instantiates PT_attribute with suitable parameters, allocates on the provided ...
Definition: parse_tree_nodes.cc:5052
PT_create_table_option * make_table_engine_attribute(MEM_ROOT *, LEX_CSTRING)
Factory function which instantiates PT_attribute with suitable parameters, allocates on the provided ...
Definition: parse_tree_nodes.cc:5006
Parse_tree_node_tmpl< Alter_tablespace_parse_context > PT_alter_tablespace_option_base
Definition: parse_tree_nodes.h:5235
PT_traceable_index_option< ha_key_alg, &KEY_CREATE_INFO::algorithm, &KEY_CREATE_INFO::is_algorithm_explicit > PT_index_type
The data structure (B-tree, Hash, etc) used for an index is called 'index_type' in the manual.
Definition: parse_tree_nodes.h:2426
PT_traceable_create_table_option< TYPE_AND_REF(HA_CREATE_INFO::m_implicit_tablespace_autoextend_size), HA_CREATE_USED_AUTOEXTEND_SIZE > PT_create_ts_autoextend_size_option
Definition: parse_tree_nodes.h:2709
PT_set_operation * flatten_equal_set_ops(MEM_ROOT *mem_root, const POS &pos, PT_query_expression_body *left, bool is_distinct, PT_query_expression_body *right, bool is_right_in_parentheses)
Flatten set operators at parse time.
Definition: parse_tree_nodes.h:5619
PT_column_attr_base * make_column_secondary_engine_attribute(MEM_ROOT *, LEX_CSTRING)
Factory function which instantiates PT_attribute with suitable parameters, allocates on the provided ...
Definition: parse_tree_nodes.cc:5082
PT_traceable_create_table_option< TYPE_AND_REF(HA_CREATE_INFO::key_block_size), HA_CREATE_USED_KEY_BLOCK_SIZE > PT_create_key_block_size_option
Definition: parse_tree_nodes.h:2699
PT_create_table_option * make_table_secondary_engine_attribute(MEM_ROOT *, LEX_CSTRING)
Factory function which instantiates PT_attribute with suitable parameters, allocates on the provided ...
Definition: parse_tree_nodes.cc:5029
PT_traceable_create_table_option< TYPE_AND_REF(HA_CREATE_INFO::m_transactional_ddl), HA_CREATE_USED_START_TRANSACTION > PT_create_start_transaction_option
Definition: parse_tree_nodes.h:2704
PT_index_option< bool, &KEY_CREATE_INFO::is_visible > PT_index_visibility
Definition: parse_tree_nodes.h:2414
PT_traceable_create_table_option< TYPE_AND_REF(HA_CREATE_INFO::merge_insert_method), HA_CREATE_USED_INSERT_METHOD > PT_create_insert_method_option
Definition: parse_tree_nodes.h:2679
On_duplicate
Definition: parser_yystype.h:243
Locked_row_action
We will static_cast this one to thr_lock_type.
Definition: parser_yystype.h:214
Lock_strength
Definition: parser_yystype.h:211
PT_joined_table_type
Internally there is no CROSS JOIN join type, as cross joins are just a special case of inner joins wi...
Definition: parser_yystype.h:226
@ JTT_LEFT
Definition: parser_yystype.h:230
@ JTT_STRAIGHT_INNER
Definition: parser_yystype.h:233
@ JTT_NATURAL_LEFT
Definition: parser_yystype.h:235
@ JTT_NATURAL
Definition: parser_yystype.h:229
@ JTT_NATURAL_INNER
Definition: parser_yystype.h:234
@ JTT_NATURAL_RIGHT
Definition: parser_yystype.h:236
@ JTT_STRAIGHT
Definition: parser_yystype.h:228
@ JTT_RIGHT
Definition: parser_yystype.h:231
@ JTT_INNER
Definition: parser_yystype.h:227
Show_cmd_type
Definition: parser_yystype.h:261
Ternary_option
Definition: parser_yystype.h:241
const char * filename
Definition: pfs_example_component_population.cc:67
const mysql_service_registry_t * r
Definition: pfs_example_plugin_employee.cc:86
Query_term_type
This class hierarchy is used to represent SQL structures between <query expression> and <query specif...
Definition: query_term.h:89
required string type
Definition: replication_group_member_actions.proto:34
repeated Action action
Definition: replication_group_member_actions.proto:43
required bool enabled
Definition: replication_group_member_actions.proto:33
"public" interface to sys_var - server configuration variables.
enum_var_type
Definition: set_var.h:91
@ OPT_GLOBAL
Definition: set_var.h:94
@ OPT_SESSION
Definition: set_var.h:93
#define HA_CREATE_USED_COMPRESS
COMPRESSION="zlib|lz4|none" used during table create.
Definition: handler.h:769
#define HA_CREATE_USED_CONNECTION
Definition: handler.h:736
#define HA_CREATE_USED_INSERT_METHOD
Definition: handler.h:721
#define HA_CREATE_USED_PACK_KEYS
Definition: handler.h:725
#define HA_CREATE_USED_DATADIR
Definition: handler.h:728
#define HA_CREATE_USED_KEY_BLOCK_SIZE
Definition: handler.h:737
#define HA_CREATE_USED_INDEXDIR
Definition: handler.h:729
constexpr const uint64_t HA_CREATE_USED_AUTOEXTEND_SIZE
These flags convey that the options AUTOEXTEND_SIZE has been specified in the CREATE TABLE statement.
Definition: handler.h:811
#define HA_CREATE_USED_TABLESPACE
This is set whenever a 'TABLESPACE=...' phrase is used on CREATE TABLE.
Definition: handler.h:766
enum_tx_isolation
Definition: handler.h:3186
#define HA_CREATE_USED_ROW_FORMAT
Definition: handler.h:733
#define HA_CREATE_USED_ENCRYPT
ENCRYPTION="Y" used during table create.
Definition: handler.h:772
#define HA_CREATE_USED_DELAY_KEY_WRITE
Definition: handler.h:732
#define HA_CREATE_USED_MIN_ROWS
Definition: handler.h:722
#define HA_CREATE_USED_PASSWORD
Definition: handler.h:735
constexpr const uint64_t HA_CREATE_USED_START_TRANSACTION
This option is used to convey that the create table should not commit the operation and keep the tran...
Definition: handler.h:795
#define HA_CREATE_USED_COMMENT
Definition: handler.h:734
#define HA_CREATE_USED_MAX_ROWS
Definition: handler.h:723
#define HA_CREATE_USED_CHECKSUM
Definition: handler.h:731
#define HA_CREATE_USED_STATS_PERSISTENT
This is set whenever STATS_PERSISTENT=0|1|default has been specified in CREATE/ALTER TABLE.
Definition: handler.h:747
#define HA_CREATE_USED_AVG_ROW_LENGTH
Definition: handler.h:724
#define HA_CREATE_USED_AUTO
Definition: handler.h:718
alter_instance_action_enum
Definition: sql_admin.h:392
role_enum
Definition: sql_admin.h:255
This file declares the interface of classes Sql_cmd_create_srs and Sql_cmd_drop_srs,...
constexpr const long STACK_MIN_SIZE
Stack reservation.
Definition: sql_const.h:142
enum_filetype
Definition: sql_exchange.h:32
enum_source_type
Definition: sql_exchange.h:30
case opt name
Definition: sslopt-case.h:29
#define STRING_WITH_LEN(X)
Definition: string_with_len.h:29
Definition: parse_tree_nodes.h:5226
Alter_tablespace_parse_context(THD *thd, bool show_parse_tree=false)
Definition: parse_tree_nodes.cc:4882
THD *const thd
Definition: parse_tree_nodes.h:5227
MEM_ROOT *const mem_root
Definition: parse_tree_nodes.h:5228
Definition: m_ctype.h:423
Definition: parse_tree_nodes.h:3176
const LEX_STRING ident
Definition: parse_tree_nodes.h:3177
Dynamic_privilege(const LEX_STRING &ident, const Mem_root_array< LEX_CSTRING > *columns_arg)
Definition: parse_tree_nodes.h:3179
Helper for the sql_exchange class.
Definition: sql_exchange.h:53
void merge_field_separators(const Field_separators &s)
Definition: sql_exchange.h:63
uint sql_flags
Definition: handler.h:3793
uint flags
Definition: handler.h:3792
Struct to hold information about the table that should be created.
Definition: handler.h:3202
ulonglong auto_increment_value
Definition: handler.h:3241
bool m_transactional_ddl
Definition: handler.h:3279
enum row_type row_type
Row type of the table definition.
Definition: handler.h:3262
LEX_STRING compress
Algorithm (and possible options) to be used for InnoDB's transparent page compression.
Definition: handler.h:3218
LEX_STRING encrypt_type
This attribute is used for InnoDB's transparent page encryption.
Definition: handler.h:3226
ulong avg_row_length
Definition: handler.h:3243
const char * data_file_name
Definition: handler.h:3236
ulonglong m_implicit_tablespace_autoextend_size
Definition: handler.h:3284
ulong table_options
Definition: handler.h:3242
uint stats_sample_pages
Definition: handler.h:3248
uint merge_insert_method
Definition: handler.h:3265
LEX_STRING connect_string
Definition: handler.h:3206
const char * tablespace
Definition: handler.h:3208
ulonglong max_rows
Definition: handler.h:3239
const char * password
Definition: handler.h:3207
ha_storage_media storage_media
Definition: handler.h:3266
LEX_STRING comment
Definition: handler.h:3209
const char * index_file_name
Definition: handler.h:3237
std::uint32_t key_block_size
Definition: handler.h:3247
ulonglong min_rows
Definition: handler.h:3240
uint64_t used_fields
Definition: handler.h:3244
Definition: parser_yystype.h:189
bool is_offset_first
Definition: parser_yystype.h:195
Helper for the sql_exchange class.
Definition: sql_exchange.h:38
void merge_line_separators(const Line_separators &s)
Definition: sql_exchange.h:43
Definition: thr_lock.h:99
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:83
Definition: mysql_lex_string.h:40
const char * str
Definition: mysql_lex_string.h:41
Definition: mysql_lex_string.h:35
char * str
Definition: mysql_lex_string.h:36
Bison "location" class.
Definition: parse_location.h:43
const char * used_alias
Tells whether this ORDER element was referenced with an alias or with an expression in the query,...
Definition: table.h:324
Item * item_initial
The initial ordering expression.
Definition: table.h:303
ORDER * next
Definition: table.h:290
enum_order direction
Definition: table.h:315
table_map used
Definition: table.h:336
Definition: parse_tree_node_base.h:403
Environment data for the contextualization phase.
Definition: parse_tree_node_base.h:420
THD *const thd
Current thread handler.
Definition: parse_tree_node_base.h:421
MEM_ROOT * mem_root
Current MEM_ROOT.
Definition: parse_tree_node_base.h:422
This class is used for representing both static and dynamic privileges on global as well as table and...
Definition: parse_tree_nodes.h:3158
const Mem_root_array< LEX_CSTRING > * columns
Definition: parse_tree_nodes.h:3162
Privilege(privilege_type type, const Mem_root_array< LEX_CSTRING > *columns)
Definition: parse_tree_nodes.h:3164
privilege_type
Definition: parse_tree_nodes.h:3159
@ STATIC
Definition: parse_tree_nodes.h:3159
@ DYNAMIC
Definition: parse_tree_nodes.h:3159
privilege_type type
Definition: parse_tree_nodes.h:3161
Info on properties that can be set with '–disable_X' and '–disable_X' commands.
Definition: mysqltest.cc:277
Definition: parse_tree_node_base.h:115
Definition: parser_yystype.h:198
Definition: sql_cmd_srs.h:41
Definition: parse_tree_nodes.h:3169
const uint grant
Definition: parse_tree_nodes.h:3170
Static_privilege(uint grant, const Mem_root_array< LEX_CSTRING > *columns_arg)
Definition: parse_tree_nodes.h:3172
Parse context for the table DDL (ALTER TABLE and CREATE TABLE) nodes.
Definition: parse_tree_nodes.h:203
HA_CREATE_INFO *const create_info
Definition: parse_tree_nodes.h:206
Alter_info *const alter_info
Definition: parse_tree_nodes.h:207
Table_ddl_parse_context(THD *thd_arg, Query_block *select_arg, Alter_info *alter_info)
Definition: parse_tree_nodes.cc:153
KEY_CREATE_INFO *const key_create_info
Definition: parse_tree_nodes.h:208
Structure used by parser to store options for tablespace statements and pass them on to Execution cla...
Definition: sql_tablespace.h:43
ulonglong redo_buffer_size
Definition: sql_tablespace.h:46
ulonglong undo_buffer_size
Definition: sql_tablespace.h:45
ulonglong file_block_size
Definition: sql_tablespace.h:50
std::optional< ulonglong > autoextend_size
Definition: sql_tablespace.h:48
uint nodegroup_id
Definition: sql_tablespace.h:51
LEX_STRING ts_comment
Definition: sql_tablespace.h:53
LEX_STRING encryption
Definition: sql_tablespace.h:55
ulonglong max_size
Definition: sql_tablespace.h:49
LEX_CSTRING engine_name
Definition: sql_tablespace.h:54
ulonglong initial_size
Definition: sql_tablespace.h:47
bool wait_until_completed
Definition: sql_tablespace.h:52
ulonglong extent_size
Definition: sql_tablespace.h:44
Definition: parser_yystype.h:323
Explain_format_type
Values for explain_format sysvar.
Definition: system_variables.h:115
tablesample_type
Definition: tablesample.h:27
thr_lock_type
Definition: thr_lock.h:51
@ TL_WRITE
Definition: thr_lock.h:92
@ TL_READ_WITH_SHARED_LOCKS
Definition: thr_lock.h:63
@ TL_IGNORE
Definition: thr_lock.h:52
thr_locked_row_action
Definition: thr_lock.h:97
command
Definition: version_token.cc:280
enum_window_frame_exclusion
Cf.
Definition: window_lex.h:48
enum_window_frame_unit
Cf.
Definition: window_lex.h:31
enum_window_border_type
Cf.
Definition: window_lex.h:37
@ WBT_VALUE_FOLLOWING
Definition: window_lex.h:40
@ WBT_VALUE_PRECEDING
Definition: window_lex.h:39