60#include "mysqld_error.h"
170#define MY_COLL_ALLOW_SUPERSET_CONV 1
171#define MY_COLL_ALLOW_COERCIBLE_CONV 2
172#define MY_COLL_DISALLOW_NONE 4
173#define MY_COLL_ALLOW_NUMERIC_CONV 8
175#define MY_COLL_ALLOW_CONV \
176 (MY_COLL_ALLOW_SUPERSET_CONV | MY_COLL_ALLOW_COERCIBLE_CONV)
177#define MY_COLL_CMP_CONV (MY_COLL_ALLOW_CONV | MY_COLL_DISALLOW_NONE)
210 uint repertoire_arg) {
295 if (is_null_terminated)
352#define NAME_STRING(x) Name_string(STRING_WITH_LEN(x))
383 void copy(
const char *str_arg,
size_t length_arg,
const CHARSET_INFO *cs_arg,
384 bool is_autogenerated_arg);
472 DBUG_PRINT(
"outer_field", (
"creating ctx %p",
this));
513 ? ER_GENERATED_COLUMN_FUNCTION_IS_NOT_ALLOWED
515 ? ER_DEFAULT_VAL_GENERATED_FUNCTION_IS_NOT_ALLOWED
516 : ER_CHECK_CONSTRAINT_FUNCTION_IS_NOT_ALLOWED);
788 if (*num < std::numeric_limits<T>::max()) {
955 static void *
operator new(
size_t size)
noexcept {
956 return (*THR_MALLOC)->Alloc(
size);
959 const std::nothrow_t &arg
960 [[maybe_unused]] = std::nothrow)
noexcept {
964 static void operator delete(
void *ptr [[maybe_unused]],
965 size_t size [[maybe_unused]]) {
969 const std::nothrow_t &)
noexcept {}
1254 if (pc->m_show_parse_tree ==
nullptr || this->m_pos.is_empty())
1269 void
rename(
char *new_name);
1299 [[maybe_unused]]) {}
1331 bool pin =
false,
bool inherit =
false) {
1370 const Query_block *outer_query_block [[maybe_unused]]) {
1371 return std::nullopt;
1392 bool no_conversions);
1406 bool no_conversions);
1438 virtual bool eq(
const Item *,
bool binary_cmp)
const;
1847 bool *incl_endp [[maybe_unused]]) {
2070 my_error(ER_NOT_SUPPORTED_YET,
MYF(0),
"item type for JSON");
2102 double rows_in_table [[maybe_unused]]) {
2104 assert((read_tables & filter_for_table) == 0);
2231 return decimal_value;
2477 const char *used_alias)
const;
2496 bool skip_registered);
2613 return (*
reinterpret_cast<std::remove_reference_t<T> *
>(arg))(
this);
2619 return (*
reinterpret_cast<std::remove_reference_t<T> *
>(*arg))(
this);
2690 if ((this->*analyzer)(arg_p))
return ((this->*transformer)(arg_t));
2696 (*traverser)(
this, arg);
2815 table->mark_column_used(field, mark_field->
mark);
2870 assert(root !=
nullptr);
3023 if (*arg) *arg =
nullptr;
3143 virtual uint
cols()
const {
return 1; }
3296 if (this_context == other_context) {
3494 Item **items, uint nitems);
3721 [[maybe_unused]])
const {
3762 return item->
walk(&Item::walk_helper_thunk<T>, walk,
3763 reinterpret_cast<uchar *
>(&functor));
3771 auto to_const = [&](
const Item *descendant) {
return functor(descendant); };
3772 return WalkItem(
const_cast<Item *
>(item), walk, to_const);
3782template <
class T,
class U>
3784 uchar *analyzer_ptr =
reinterpret_cast<uchar *
>(&analyzer);
3785 return item->
compile(&Item::analyze_helper_thunk<T>, &analyzer_ptr,
3786 &Item::walk_helper_thunk<U>,
3787 reinterpret_cast<uchar *
>(&transformer));
3797 return item->
transform(&Item::walk_helper_thunk<T>,
3798 pointer_cast<uchar *>(&transformer));
3877 Field *field,
bool no_conversions)
override;
3891 Field *field,
bool no_conversions) {
4039 bool no_conversions)
override {
4047 uint nargs, uint
flags,
int item_sep,
4050 uint nitems, uint
flags,
int item_sep,
bool only_consts);
4053 uint nitems,
int item_sep = 1) {
4059 Item **items, uint nitems,
4177 const char *table_name_arg,
const char *field_name_arg)
4192 const char *table_name_arg,
const char *field_name_arg)
4270 const char *db_name_arg,
const char *table_name_arg)
const;
4306 bool any_privileges);
4318 const char *table_name_arg)
4357 bool no_conversions)
override;
4424 assert(item_equal !=
nullptr);
4454 const char *table_name_arg,
const char *field_name_arg);
4455 Item_field(
const POS &pos,
const char *db_arg,
const char *table_name_arg,
4456 const char *field_name_arg);
4465 bool eq(
const Item *item,
bool binary_cmp)
const override;
4522 return pointer_cast<Field *>(arg) ==
field;
4526 auto mark_field = pointer_cast<Mark_field *>(arg);
4594 double rows_in_table)
override;
4615 float default_filter)
const;
4673 const char *opt_table_name)
4674 :
super(pos, opt_schema_name, opt_table_name,
"*") {}
4713 bool no_conversions)
override;
4731 bool eq(
const Item *item,
bool binary_cmp)
const override;
4762 bool no_conversions)
override;
5041 bool eq(
const Item *item,
bool binary_cmp)
const override;
5067 pointer_cast<Check_function_as_value_generator_parameters *>(args);
5161 static_cast<uint>(num.
length)) {}
5172 bool no_conversions)
override;
5183 return static_cast<double>(
value);
5201 bool eq(
const Item *,
bool)
const override;
5230 bool no_conversions)
override;
5264 bool no_conversions)
override;
5302 bool no_conversions)
override;
5308 uint decimal_par, uint
length);
5337 bool eq(
const Item *,
bool binary_cmp)
const override;
5366 uint decimal_par, uint
length)
5388 bool no_conversions)
override;
5398 if (
value <= LLONG_MIN) {
5422 bool eq(
const Item *,
bool binary_cmp)
const override;
5472 bool no_conversions)
override;
5575 bool eq(
const Item *item,
bool binary_cmp)
const override;
5633 const char *cptr,
const char *
end,
5634 int unsigned_target);
5663 pointer_cast<Check_function_as_value_generator_parameters *>(args);
5689 pointer_cast<Check_function_as_value_generator_parameters *>(args);
5729 bool no_conversions)
override;
5765 bool eq(
const Item *item,
bool binary_cmp)
const override;
5865 return llrint(realval);
5890 bool no_conversions)
override;
5907 const char *table_name_arg,
const char *field_name_arg)
5908 :
Item_ident(context_arg, db_name_arg, table_name_arg, field_name_arg) {}
5909 Item_ref(
const POS &pos,
const char *db_name_arg,
const char *table_name_arg,
5910 const char *field_name_arg)
5911 :
Item_ident(pos, db_name_arg, table_name_arg, field_name_arg) {}
5928 const char *db_name_arg,
const char *table_name_arg,
5929 const char *field_name_arg,
bool alias_of_expr_arg =
false);
5931 const char *field_name_arg);
5948 bool eq(
const Item *item,
bool binary_cmp)
const override {
5982 if (
map != 0)
return map;
6034 if (order ==
PREFIX) (*traverser)(
this, arg);
6036 if (order ==
POSTFIX) (*traverser)(
this, arg);
6105 pointer_cast<Check_function_as_value_generator_parameters *>(args);
6134 const char *db_name_arg,
const char *alias_name_arg,
6135 const char *table_name_arg,
const char *field_name_arg,
6137 :
Item_ref(context_arg, item, db_name_arg, alias_name_arg,
6144 assert(db_name_arg ==
nullptr);
6192 bool eq(
const Item *item,
bool)
const override;
6227 bool no_conversions)
override;
6284 const char *db_name_arg,
const char *table_name_arg,
6285 const char *field_name_arg,
bool alias_of_expr_arg,
6287 :
Item_ref(context_arg, item, db_name_arg, table_name_arg, field_name_arg,
6324 :
super(context_arg, item,
"",
"",
""),
owner(master) {}
6357 bool no_conversions)
override {
6547 bool cmp()
override;
6556 bool cmp()
override;
6564 bool cmp()
override;
6572 bool cmp()
override;
6580 bool cmp()
override;
6588 bool cmp()
override;
6596 bool no_conversions)
override;
6603 bool eq(
const Item *item,
bool binary_cmp)
const override;
6628 reinterpret_cast<char *
>(args));
6654 bool no_conversions)
override {
6683 bool eq(
const Item *item,
bool binary_cmp)
const override;
6702 pointer_cast<Check_function_as_value_generator_parameters *>(args);
6772 bool eq(
const Item *item,
bool binary_cmp)
const override;
6789 pointer_cast<Check_function_as_value_generator_parameters *>(args);
6807 const bool ret =
set_value(thd,
nullptr, it);
6871 if (
example ==
nullptr)
return;
6902 bool eq(
const Item *item,
bool)
const override {
return this == item; }
6954 pointer_cast<Check_function_as_value_generator_parameters *>(args);
7067 bool no_conversions)
override;
7252 field->
field =
true;
7256 pointer_cast<Check_function_as_value_generator_parameters *>(args);
7314 bool no_conversions)
override;
7319 bool eq(
const Item *item,
bool binary_cmp)
const override;
7370 return std::count_if(fields.
begin(), fields.
end(),
7371 [](
Item *item) { return !item->hidden; });
7375 return std::count_if(fields.
begin(), fields.
end(),
7376 [](
Item *item) { return item->hidden; });
7381 for (
Item *item : fields) {
7382 if (item->hidden)
continue;
7383 if (index-- == 0)
return item;
uint32_t Access_bitmask
Definition: auth_acls.h:34
Kerberos Client Authentication nullptr
Definition: auth_kerberos_client_plugin.cc:251
A type for SQL-like 3-valued Booleans: true/false/unknown.
Definition: item.h:596
value
Definition: item.h:610
@ v_UNKNOWN
Definition: item.h:610
@ v_FALSE
Definition: item.h:610
@ v_TRUE
Definition: item.h:610
Bool3(value v)
This is private; instead, use false3()/etc.
Definition: item.h:612
static const Bool3 true3()
Definition: item.h:603
static const Bool3 unknown3()
Definition: item.h:601
static const Bool3 false3()
Definition: item.h:599
bool is_true() const
Definition: item.h:605
value m_val
Definition: item.h:614
bool is_unknown() const
Definition: item.h:606
bool is_false() const
Definition: item.h:607
Definition: item_cmpfunc.h:2727
bool cmp() override
Compare the value associated with the item with the stored value.
Definition: item_buff.cc:186
Cached_item_decimal(Item *item_par)
Definition: item.h:6587
my_decimal value
Definition: item.h:6584
longlong value
Definition: item.h:6568
bool cmp() override
Compare the value associated with the item with the stored value.
Definition: item_buff.cc:153
Cached_item_int(Item *item_par)
Definition: item.h:6571
Cached_item subclass for JSON values.
Definition: item.h:6551
Json_wrapper * m_value
The cached JSON value.
Definition: item.h:6552
~Cached_item_json() override
Definition: item_buff.cc:99
Cached_item_json(Item *item)
Definition: item_buff.cc:96
bool cmp() override
Compare the new JSON value in member 'item' with the previous value.
Definition: item_buff.cc:109
Cached_item_real(Item *item_par)
Definition: item.h:6563
bool cmp() override
Compare the value associated with the item with the stored value.
Definition: item_buff.cc:137
double value
Definition: item.h:6560
String tmp_value
Definition: item.h:6543
Cached_item_str(Item *arg)
Definition: item.h:6546
bool cmp() override
Compare the value associated with the item with the stored value.
Definition: item_buff.cc:76
String value
Definition: item.h:6542
Cached_item_temporal(Item *item_par)
Definition: item.h:6579
bool cmp() override
Compare the value associated with the item with the stored value.
Definition: item_buff.cc:170
longlong value
Definition: item.h:6576
This is used for segregating rows in groups (e.g.
Definition: item.h:6517
Item ** get_item_ptr()
Definition: item.h:6536
Item * item
The item whose value to cache.
Definition: item.h:6519
virtual ~Cached_item()=default
Item * get_item() const
Definition: item.h:6535
virtual bool cmp()=0
Compare the value associated with the item with the stored value.
Cached_item(Item *i)
Definition: item.h:6520
bool null_value
Definition: item.h:6523
This class represents the cost of evaluating an Item.
Definition: item.h:797
bool m_is_expensive
True if the associated Item calls user defined functions or stored procedures.
Definition: item.h:852
double FieldCost() const
Get the cost of field access when evaluating the Item associated with this object.
Definition: item.h:834
uint8 m_other_fields
The number of other Field objects accessed by the associated Item.
Definition: item.h:858
void Compute(const Item &item)
Set '*this' to represent the cost of 'item'.
Definition: item.h:800
static constexpr double kStrFieldCost
The cost of accessing a Field_str, relative to other Field types.
Definition: item.h:842
uint8 m_str_fields
The number of Field_str objects accessed by the associated Item.
Definition: item.h:855
bool IsExpensive() const
Definition: item.h:823
void AddFieldCost()
Add the cost of accessing any other Field.
Definition: item.h:818
bool m_computed
True if 'ComputeInternal()' has been called.
Definition: item.h:848
void ComputeInternal(const Item &root)
Compute the cost of 'root' and its descendants.
Definition: item.cc:130
static constexpr double kOtherFieldCost
The cost of accessing a Field other than Field_str. 1.0 by definition.
Definition: item.h:845
void AddStrFieldCost()
Add the cost of accessing a Field_str.
Definition: item.h:812
void MarkExpensive()
Definition: item.h:806
void set(Derivation derivation_arg)
Definition: item.h:224
DTCollation(const CHARSET_INFO *collation_arg, Derivation derivation_arg)
Definition: item.h:194
void set_repertoire_from_charset(const CHARSET_INFO *cs)
Definition: item.h:185
bool aggregate(DTCollation &dt, uint flags=0)
Aggregate two collations together taking into account their coercibility (aka derivation):.
Definition: item.cc:2560
void set(const DTCollation &dt)
Definition: item.h:199
DTCollation()
Definition: item.h:189
void set(const CHARSET_INFO *collation_arg, Derivation derivation_arg, uint repertoire_arg)
Definition: item.h:209
bool set(DTCollation &dt1, DTCollation &dt2, uint flags=0)
Definition: item.h:227
void set_numeric()
Definition: item.h:215
void set_repertoire(uint repertoire_arg)
Definition: item.h:225
const CHARSET_INFO * collation
Definition: item.h:181
Derivation derivation
Definition: item.h:182
const char * derivation_name() const
Definition: item.h:231
void set(const CHARSET_INFO *collation_arg, Derivation derivation_arg)
Definition: item.h:204
uint repertoire
Definition: item.h:183
void set(const CHARSET_INFO *collation_arg)
Definition: item.h:220
A field that stores a JSON value.
Definition: field.h:4001
const CHARSET_INFO * charset_for_protocol() const
Definition: field.h:1598
virtual Item_result cast_to_int_type() const
Definition: field.h:1047
static constexpr size_t MAX_LONG_BLOB_WIDTH
Definition: field.h:737
virtual bool is_array() const
Whether the field is a typed array.
Definition: field.h:1801
static constexpr size_t MAX_VARCHAR_WIDTH
Definition: field.h:731
const char * field_name
Definition: field.h:686
virtual void add_to_cost(CostOfItem *cost) const
Update '*cost' with the fact that this Field is accessed.
Definition: field.cc:1244
virtual uint32 max_display_length() const =0
TABLE * table
Pointer to TABLE object that owns this field.
Definition: field.h:681
bool is_null(ptrdiff_t row_offset=0) const
Check whether the full table's row is NULL or the Field has value NULL.
Definition: field.h:1227
virtual my_decimal * val_decimal(my_decimal *) const =0
bool is_tmp_nullable() const
Definition: field.h:911
virtual double val_real() const =0
virtual longlong val_int() const =0
virtual Item_result numeric_context_result_type() const
Returns Item_result type of a field when it appears in numeric context such as: SELECT time_column + ...
Definition: field.h:1043
virtual bool eq_def(const Field *field) const
Definition: field.cc:8483
virtual bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) const
Definition: field.cc:2100
geometry_type
Definition: field.h:718
@ GEOM_GEOMETRY
Definition: field.h:719
virtual Item_result result_type() const =0
bool is_nullable() const
Definition: field.h:1300
virtual geometry_type get_geometry_type() const
Definition: field.h:1681
static Item_result result_merge_type(enum_field_types)
Detect Item_result by given field type of UNION merge result.
Definition: field.cc:1359
String * val_str(String *str) const
Definition: field.h:1012
bool is_field_for_functional_index() const
Definition: field.h:877
virtual bool get_time(MYSQL_TIME *ltime) const
Definition: field.cc:2107
static constexpr size_t MAX_MEDIUM_BLOB_WIDTH
Definition: field.h:736
void dbug_print() const
Definition: field.h:1688
Context object for (functions that override) Item::clean_up_after_removal().
Definition: item.h:2867
Query_block *const m_root
Pointer to Cleanup_after_removal_context containing from which select the walk started,...
Definition: item.h:2881
Cleanup_after_removal_context(Query_block *root)
Definition: item.h:2869
Query_block * get_root()
Definition: item.h:2873
List< Item > * m_items
Definition: item.h:2719
Collect_item_fields_or_refs(List< Item > *fields_or_refs)
Definition: item.h:2720
Collect_item_fields_or_refs(const Collect_item_fields_or_refs &)=delete
Collect_item_fields_or_refs & operator=(const Collect_item_fields_or_refs &)=delete
Collect_item_fields_or_view_refs(const Collect_item_fields_or_view_refs &)=delete
Query_block * m_transformed_block
Definition: item.h:2734
List< Item > * m_item_fields_or_view_refs
Definition: item.h:2733
Collect_item_fields_or_view_refs(List< Item > *fields_or_vr, Query_block *transformed_block)
Definition: item.h:2738
uint m_any_value_level
Used to compute Item_field's m_protected_by_any_value.
Definition: item.h:2737
Collect_item_fields_or_view_refs & operator=(const Collect_item_fields_or_view_refs &)=delete
Interface for storing an aggregation of type and type specification of multiple Item objects.
Definition: item.h:7223
longlong val_int() override=0
Item_result result_type() const override
Return expression type of Item_aggregate_type.
Definition: item.cc:10516
my_decimal * val_decimal(my_decimal *) override=0
void set_typelib(Item *item)
Set typelib information for an aggregated enum/set field.
Definition: item.cc:10786
bool get_time(MYSQL_TIME *) override=0
Item_aggregate_type(THD *, Item *)
Definition: item.cc:10497
bool get_date(MYSQL_TIME *, my_time_flags_t) override=0
String * val_str(String *) override=0
bool check_function_as_value_generator(uchar *args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item.h:7254
static uint32 display_length(Item *item)
Calculate length for merging result for given Item type.
Definition: item.cc:10669
void make_field(Send_field *field) override
Definition: item.h:7249
Field * make_field_by_type(TABLE *table, bool strict)
Make temporary table field according collected information about type of UNION result.
Definition: item.cc:10731
bool join_types(THD *, Item *)
Find field type which can carry current Item_aggregate_type type and type of given Item.
Definition: item.cc:10597
double val_real() override=0
Field::geometry_type get_geometry_type() const override
Definition: item.h:7246
TYPELIB * m_typelib
Typelib information, only used for data type ENUM and SET.
Definition: item.h:7226
Field::geometry_type geometry_type
Geometry type, only used for data type GEOMETRY.
Definition: item.h:7228
Represents [schema.
Definition: item.h:4661
bool is_asterisk() const override
Checks if the current object represents an asterisk select list item.
Definition: item.h:4681
Item_asterisk(const POS &pos, const char *opt_schema_name, const char *opt_table_name)
Constructor.
Definition: item.h:4672
Item_field super
Definition: item.h:4662
bool fix_fields(THD *, Item **) override
Resolve the name of a column reference.
Definition: item.h:4677
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item.cc:11163
Item_basic_constant(const POS &pos)
Definition: item.h:3808
void cleanup() override
Called for every Item after use (preparation and execution).
Definition: item.h:3817
void set_str_value(String *str)
Definition: item.h:3825
bool basic_const_item() const override
Returns true if this is a simple constant item like an integer, not a constant expression.
Definition: item.h:3824
void set_used_tables(table_map map)
Definition: item.h:3813
table_map used_table_map
Definition: item.h:3804
bool check_function_as_value_generator(uchar *) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item.h:3815
Item_basic_constant()
Definition: item.h:3807
table_map used_tables() const override
Definition: item.h:3814
Item_bin_string(const char *str, size_t str_length)
Definition: item.h:5779
void bin_string_init(const char *str, size_t str_length)
Definition: item.cc:7458
static LEX_CSTRING make_bin_str(const char *str, size_t str_length)
Definition: item.cc:7428
Item_hex_string super
Definition: item.h:5776
Item_bin_string(const POS &pos, const LEX_STRING &literal)
Definition: item.h:5782
Item_blob(const char *name, size_t length)
Definition: item.h:5681
enum Type type() const override
Definition: item.h:5686
bool check_function_as_value_generator(uchar *args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item.h:5687
Cache class for BIT type expressions.
Definition: item.h:7002
Item_cache_bit(enum_field_types field_type_arg)
Definition: item.h:7004
uint string_length()
Definition: item.h:7014
String * val_str(String *str) override
Transform the result Item_cache_int::value in bit format.
Definition: item.cc:9912
longlong val_int() override
Definition: item.cc:10108
longlong val_time_temporal() override
Return time value of item in packed longlong format.
Definition: item.cc:10083
longlong int_value
Definition: item.h:7154
longlong val_date_temporal() override
Return date value of item in packed longlong format.
Definition: item.cc:10096
bool cache_value() override
Definition: item.cc:9943
my_decimal * val_decimal(my_decimal *) override
Definition: item.cc:10000
void store_value(Item *item, longlong val_arg)
Definition: item.cc:9959
bool get_time(MYSQL_TIME *ltime) override
Definition: item.cc:10055
String * val_str(String *str) override
Definition: item.cc:9972
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item.cc:10021
bool str_value_cached
Definition: item.h:7155
Item_result result_type() const override
Definition: item.h:7173
void clear() override
Definition: item.h:7183
String cached_string
Definition: item.h:7151
void store(Item *item) override
Assigns to the cache the expression to be cached.
Definition: item.cc:9967
bool cache_value_int()
Definition: item.cc:9928
Item_cache_datetime(enum_field_types field_type_arg)
Definition: item.h:7158
double val_real() override
Definition: item.cc:10081
double val_real() override
Definition: item.cc:10293
my_decimal decimal_value
Definition: item.h:7040
bool cache_value() override
Definition: item.cc:10277
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item.h:7049
longlong val_int() override
Definition: item.cc:10301
Item_cache_decimal()
Definition: item.h:7043
String * val_str(String *str) override
Definition: item.cc:10309
void store_value(Item *expr, my_decimal *d)
Definition: item.cc:10286
my_decimal * val_decimal(my_decimal *) override
Definition: item.cc:10318
bool get_time(MYSQL_TIME *ltime) override
Definition: item.h:7052
Item_result result_type() const override
Definition: item.h:7055
double val_real() override
Definition: item.cc:9899
longlong val_int() override
Definition: item.cc:9906
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item.h:6988
longlong value
Definition: item.h:6970
Item_cache_int(enum_field_types field_type_arg)
Definition: item.h:6974
longlong val_date_temporal() override
Return date value of item in packed longlong format.
Definition: item.h:6985
longlong val_time_temporal() override
Return time value of item in packed longlong format.
Definition: item.h:6984
Item_result result_type() const override
Definition: item.h:6992
Item_cache_int()
Definition: item.h:6973
bool cache_value() override
Definition: item.cc:9868
bool get_time(MYSQL_TIME *ltime) override
Definition: item.h:6991
my_decimal * val_decimal(my_decimal *) override
Definition: item.cc:9892
void store_value(Item *item, longlong val_arg)
Unlike store(), this stores an explicitly provided value, not the one of 'item'; however,...
Definition: item.cc:9877
String * val_str(String *str) override
Definition: item.cc:9885
An item cache for values of type JSON.
Definition: item.h:7190
Item_result result_type() const override
Definition: item.h:7204
my_decimal * val_decimal(my_decimal *val) override
Definition: item.cc:10186
bool m_is_sorted
Whether the cached value is array and it is sorted.
Definition: item.h:7194
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item.cc:10197
Json_wrapper * m_value
Cached value.
Definition: item.h:7192
bool cache_value() override
Read the JSON value and cache it.
Definition: item.cc:10123
Item_cache_json()
Definition: item.cc:10110
bool get_time(MYSQL_TIME *ltime) override
Definition: item.cc:10209
~Item_cache_json() override
Definition: item.cc:10115
bool val_json(Json_wrapper *wr) override
Copy the cached JSON value into a wrapper.
Definition: item.cc:10156
bool is_sorted()
Returns true when cached value is array and it's sorted.
Definition: item.h:7213
void store_value(Item *expr, Json_wrapper *wr)
Definition: item.cc:10140
double val_real() override
Definition: item.cc:10176
String * val_str(String *str) override
Definition: item.cc:10166
void sort()
Sort cached data. Only arrays are affected.
Definition: item.cc:10229
longlong val_int() override
Definition: item.cc:10220
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item.h:7027
Item_cache_real()
Definition: item.h:7021
void store_value(Item *expr, double value)
Definition: item.cc:10245
double value
Definition: item.h:7018
my_decimal * val_decimal(my_decimal *) override
Definition: item.cc:10270
bool cache_value() override
Definition: item.cc:10237
Item_result result_type() const override
Definition: item.h:7033
double val_real() override
Definition: item.cc:10251
bool get_time(MYSQL_TIME *ltime) override
Definition: item.h:7030
String * val_str(String *str) override
Definition: item.cc:10263
longlong val_int() override
Definition: item.cc:10257
Item * element_index(uint i) override
Definition: item.h:7141
longlong val_int() override
Definition: item.h:7117
double val_real() override
Definition: item.h:7113
bool null_inside() override
Definition: item.cc:10479
Item_result result_type() const override
Definition: item.h:7138
Item ** addr(uint i) override
Definition: item.h:7142
bool allocate(uint num) override
'allocate' is only used in Item_cache_row::setup()
Definition: item.cc:10409
Item_cache_row()
Definition: item.h:7099
void bring_value() override
Definition: item.cc:10490
bool get_time(MYSQL_TIME *) override
Definition: item.h:7133
my_decimal * val_decimal(my_decimal *) override
Definition: item.h:7125
void make_field(Send_field *) override
Definition: item.h:7112
void illegal_method_call(const char *) const
Definition: item.cc:10463
bool get_date(MYSQL_TIME *, my_time_flags_t) override
Definition: item.h:7129
uint item_count
Definition: item.h:7096
bool check_cols(uint c) override
Definition: item.cc:10471
bool cache_value() override
Definition: item.cc:10440
uint cols() const override
Definition: item.h:7140
bool setup(Item *item) override
Definition: item.cc:10416
void store(Item *item) override
Assigns to the cache the expression to be cached.
Definition: item.cc:10429
void cleanup() override
Called for every Item after use (preparation and execution).
Definition: item.h:7146
Item_cache ** values
Definition: item.h:7095
String * val_str(String *) override
Definition: item.h:7121
type_conversion_status save_in_field_inner(Field *field, bool no_conversions) override
Helper function which does all of the work for save_in_field(Field*, bool), except some error checkin...
Definition: item.cc:10395
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item.h:7082
bool get_time(MYSQL_TIME *ltime) override
Definition: item.h:7085
bool cache_value() override
Definition: item.cc:10324
Item_result result_type() const override
Definition: item.h:7088
void store_value(Item *expr, String &s)
Definition: item.cc:10346
String value_buff
Definition: item.h:7062
my_decimal * val_decimal(my_decimal *) override
Definition: item.cc:10384
const CHARSET_INFO * charset() const
Definition: item.h:7089
double val_real() override
Definition: item.cc:10356
String * val_str(String *) override
Definition: item.cc:10378
longlong val_int() override
Definition: item.cc:10367
char buffer[STRING_BUFFER_USUAL_SIZE]
Definition: item.h:7061
String * value
Definition: item.h:7062
bool is_varbinary
Definition: item.h:7063
Item_cache_str(const Item *item)
Definition: item.h:7070
bool walk(Item_processor processor, enum_walk walk, uchar *arg) override
Traverses a tree of Items in prefix and/or postfix order.
Definition: item.cc:9839
void cleanup() override
Called for every Item after use (preparation and execution).
Definition: item.cc:9857
Field * field()
If this item caches a field value, return pointer to underlying field.
Definition: item.h:6915
Item * get_example() const
Definition: item.h:6964
bool eq_def(const Field *field)
Definition: item.h:6899
Item_field * cached_field
Field that this object will get value from.
Definition: item.h:6842
virtual bool allocate(uint)
Definition: item.h:6876
Item ** get_example_ptr()
Definition: item.h:6965
bool is_non_const_over_literals(uchar *) override
Definition: item.h:6951
bool has_value()
Check if saved item has a non-NULL value.
Definition: item.cc:9845
Item_result result_type() const override
Definition: item.h:6960
friend bool has_rollup_result(Item *item)
Checks if an item has a ROLLUP NULL which needs to be written to temp table.
Definition: sql_executor.cc:308
bool basic_const_item() const override
Returns true if this is a simple constant item like an integer, not a constant expression.
Definition: item.h:6940
void fix_after_pullout(Query_block *parent_query_block, Query_block *removed_query_block) override
Fix after tables have been moved from one query_block level to the parent level, e....
Definition: item.h:6869
virtual bool cache_value()=0
void store_null()
Force an item to be null.
Definition: item.h:6928
Item_cache(enum_field_types field_type_arg)
Definition: item.h:6862
table_map used_table_map
Definition: item.h:6836
enum Type type() const override
Definition: item.h:6893
Item_cache()
Definition: item.h:6857
virtual void store(Item *item)
Assigns to the cache the expression to be cached.
Definition: item.cc:9820
virtual bool setup(Item *item)
Definition: item.h:6877
bool value_cached
Definition: item.h:6850
table_map used_tables() const override
Definition: item.h:6896
bool is_null() override
The method allows to determine nullness of a complex expression without fully evaluating it,...
Definition: item.h:6948
virtual void clear()
Definition: item.h:6944
bool check_function_as_value_generator(uchar *args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item.h:6952
Item * example
Definition: item.h:6835
friend bool replace_contents_of_rollup_wrappers_with_tmp_fields(THD *thd, Query_block *select, Item *item_arg)
For each rollup wrapper below the given item, replace its argument with a temporary field,...
Definition: sql_executor.cc:4402
static Item_cache * get_cache(const Item *item)
Definition: item.cc:9777
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item.cc:9829
bool store_and_cache(Item *item)
Definition: item.h:6935
bool eq(const Item *item, bool) const override
Definition: item.h:6902
uint m_case_expr_id
Definition: item.h:3989
Type type() const override
Definition: item.h:3976
Item * this_item() override
Definition: item.cc:2018
Item_case_expr(uint case_expr_id)
Definition: item.cc:2014
Item ** this_item_addr(THD *thd, Item **) override
Definition: item.cc:2030
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item.cc:2036
Item_result result_type() const override
Definition: item.h:3977
longlong val_date_temporal() override
Return date value of item in packed longlong format.
Definition: item.h:6415
Item_datetime_with_ref(enum_field_types field_type_arg, uint8 decimals_arg, longlong i, Item *ref_arg)
Constructor for Item_datetime_with_ref.
Definition: item.h:6410
longlong val_time_temporal() override
Return time value of item in packed longlong format.
Definition: item.h:6416
Item * clone_item() const override
Definition: item.cc:7097
uint decimal_precision() const override
Definition: item.h:5336
bool eq(const Item *, bool binary_cmp) const override
Definition: item.cc:3524
String * val_str(String *) override
Definition: item.cc:3507
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item.cc:3513
Item_result result_type() const override
Definition: item.h:5315
longlong val_int() override
Definition: item.cc:3495
enum Type type() const override
Definition: item.h:5314
my_decimal * val_decimal(my_decimal *) override
Definition: item.h:5319
my_decimal decimal_value
Definition: item.h:5300
double val_real() override
Definition: item.cc:3501
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item.h:5320
bool check_partition_func_processor(uchar *) override
Check if a partition function is allowed.
Definition: item.h:5339
type_conversion_status save_in_field_inner(Field *field, bool no_conversions) override
Helper function which does all of the work for save_in_field(Field*, bool), except some error checkin...
Definition: item.cc:7056
Item_num super
Definition: item.h:5297
Item_decimal(const POS &pos, const char *str_arg, uint length, const CHARSET_INFO *charset)
Definition: item.cc:3436
Item * clone_item() const override
Definition: item.h:5326
Item_num * neg() override
Definition: item.h:5331
void set_decimal_value(const my_decimal *value_par)
Definition: item.cc:3539
bool get_time(MYSQL_TIME *ltime) override
Definition: item.h:5323
Item * transform(Item_transformer transformer, uchar *args) override
Perform a generic transformation of the Item tree, by adding zero or more additional Item objects to ...
Definition: item.cc:9254
type_conversion_status save_in_field_inner(Field *field, bool no_conversions) override
Helper function which does all of the work for save_in_field(Field*, bool), except some error checkin...
Definition: item.cc:9210
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item.cc:9199
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item.cc:9115
Item_default_value(const POS &pos, Item *a=nullptr)
Definition: item.h:6599
bool eq(const Item *item, bool binary_cmp) const override
Definition: item.cc:9131
void bind_fields() override
Bind objects from the current execution context to field objects in item trees.
Definition: item.cc:9189
bool walk(Item_processor processor, enum_walk walk, uchar *args) override
Traverses a tree of Items in prefix and/or postfix order.
Definition: item.h:6620
Item_field super
Definition: item.h:6592
bool check_column_privileges(uchar *) override
Check privileges of base table column.
Definition: item.h:6618
table_map used_tables() const override
Definition: item.h:6609
bool check_gcol_depend_default_processor(uchar *args) override
Check if a generated expression depends on DEFAULT function with specific column name as argument.
Definition: item.h:6626
Item * arg
The argument for this function.
Definition: item.h:6636
bool collect_item_field_or_view_ref_processor(uchar *arg) override
Collects fields and view references that have the qualifying table in the specified query block.
Definition: item.cc:6348
Item * argument() const
Definition: item.h:6632
uchar * m_rowbuffer_saved
Pointer to row buffer that was used to calculate field value offset.
Definition: item.h:6638
bool fix_fields(THD *, Item **) override
Resolve the name of a column reference.
Definition: item.cc:9136
enum Type type() const override
Definition: item.h:6602
Item * replace_item_field(uchar *) override
If this default value is the target of replacement, replace it with the info object's item or,...
Definition: item.cc:6372
Item * get_tmp_table_item(THD *thd) override
If an Item is materialized in a temporary table, a different Item may have to be used in the part of ...
Definition: item.h:6610
void cleanup() override
Called for every Item after use (preparation and execution).
Definition: item.h:6606
Item_empty_string – is a utility class to put an item into List<Item> which is then used in protocol....
Definition: item.h:5701
void make_field(Send_field *field) override
Definition: item.cc:6477
Item_empty_string(const char *header, size_t length, const CHARSET_INFO *cs=nullptr)
Definition: item.h:5703
Definition: item_cmpfunc.h:2587
Item * replace_equal_field(uchar *) override
Replace an Item_field for an equal Item_field that evaluated earlier (if any).
Definition: item.cc:6418
bool protected_by_any_value() const
See m_protected_by_any_value.
Definition: item.h:4643
bool check_column_privileges(uchar *arg) override
Check privileges of base table column.
Definition: item.cc:1310
bool collect_item_field_or_ref_processor(uchar *arg) override
When collecting information about columns when transforming correlated scalar subqueries using derive...
Definition: item.cc:978
bool check_column_in_window_functions(uchar *arg) override
Check if this column is found in PARTITION clause of all the window functions.
Definition: item.cc:1159
bool eq(const Item *item, bool binary_cmp) const override
Definition: item.cc:3229
bool find_field_processor(uchar *arg) override
Is this an Item_field which references the given Field argument?
Definition: item.h:4521
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item.cc:3207
Item * safe_charset_converter(THD *thd, const CHARSET_INFO *tocs) override
Definition: item.cc:6112
bool alias_name_used() const override
Definition: item.h:4621
bool any_privileges
Definition: item.h:4447
bool check_partition_func_processor(uchar *) override
Check if a partition function is allowed.
Definition: item.h:4534
enum Type type() const override
Definition: item.h:4464
bool add_field_to_cond_set_processor(uchar *) override
Item::walk function.
Definition: item.cc:1025
Item_result numeric_context_result_type() const override
Result type when an item appear in a numeric context.
Definition: item.h:4482
void set_item_equal_all_join_nests(Item_equal *item_equal)
Definition: item.h:4423
Item_equal * item_equal_all_join_nests
Definition: item.h:4437
void set_field(Field *field)
Definition: item.cc:3018
Item_result cast_to_int_type() const override
Definition: item.h:4486
const Item_field * base_item_field() const
Definition: item.h:4500
bool collect_item_field_processor(uchar *arg) override
Store the pointer to this item field into a list if not already there.
Definition: item.cc:951
Item * replace_with_derived_expr_ref(uchar *arg) override
Assuming this expression is part of a condition that would be pushed to the HAVING clause of a materi...
Definition: item.cc:1223
uint16 field_index
Index for this field in table->field array.
Definition: item.h:4420
Item_equal * multi_equality() const
Definition: item.h:4421
const CHARSET_INFO * charset_for_protocol(void) override
Definition: item.h:4567
Item_equal * m_multi_equality
Holds a list of items whose values must be equal to the value of this field, during execution.
Definition: item.h:4413
bool subst_argument_checker(uchar **arg) override
Check whether a field can be substituted by an equal item.
Definition: item.cc:6226
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item.cc:8121
Field * result_field
Result field.
Definition: item.h:4375
Item_result result_type() const override
Definition: item.h:4481
uint32 max_disp_length()
Definition: item.h:4552
void dbug_print() const
Definition: item.h:4572
double val_real() override
Definition: item.cc:3165
bool find_item_in_field_list_processor(uchar *arg) override
Check if an Item_field references some field from a list of fields.
Definition: item.cc:1054
void save_org_in_field(Field *field) override
Set a field's value from a item.
Definition: item.cc:6780
void make_field(Send_field *tmp_field) override
Definition: item.cc:6726
bool get_time(MYSQL_TIME *ltime) override
Definition: item.cc:3215
void set_base_item_field(const Item_field *item)
Definition: item.h:4496
bool get_timeval(my_timeval *tm, int *warnings) override
Get timestamp in "struct timeval" format.
Definition: item.cc:3223
enum_monotonicity_info get_monotonicity_info() const override
Definition: item.h:4489
float get_cond_filter_default_probability(double max_distinct_values, float default_filter) const
Returns the probability for the predicate "col OP <val>" to be true for a row in the case where no in...
Definition: item.cc:8162
Item_field * field_for_view_update() override
Definition: item.h:4553
const Item_field * m_base_item_field
If this field is derived from another field, e.g.
Definition: item.h:4397
void set_result_field(Field *field_arg) override
Definition: item.h:4493
bool send(Protocol *protocol, String *str_arg) override
This is only called from items that is not of type item_field.
Definition: item.cc:8086
int fix_outer_field(THD *thd, Field **field, Item **reference)
Resolve the name of an outer select column reference.
Definition: item.cc:5433
Table_ref * table_ref
Table containing this resolved field.
Definition: item.h:4369
table_map used_tables() const override
Definition: item.cc:3265
bool is_null() override
The method allows to determine nullness of a complex expression without fully evaluating it,...
Definition: item.h:4506
void reset_field()
Reset all aspect of a field object, so that it can be re-resolved.
Definition: item.cc:6154
Field * field
Source field.
Definition: item.h:4371
void compute_cost(CostOfItem *root_cost) const override
Compute the cost of evaluating this Item.
Definition: item.h:4645
Item * update_value_transformer(uchar *select_arg) override
Add the field to the select list and substitute it for the reference to the field.
Definition: item.cc:8107
bool check_column_in_group_by(uchar *arg) override
Check if this column is found in GROUP BY.
Definition: item.cc:1193
uint32_t last_org_destination_field_memcpyable
Definition: item.h:4389
bool returns_array() const override
Whether the item returns array of its data type.
Definition: item.h:4628
Item * replace_item_field(uchar *) override
If this field is the target is the target of replacement, replace it with the info object's item or,...
Definition: item.cc:6327
longlong val_date_temporal() override
Return date value of item in packed longlong format.
Definition: item.cc:3183
void bind_fields() override
Bind objects from the current execution context to field objects in item trees.
Definition: item.cc:6083
void set_can_use_prefix_key() override
Definition: item.h:4630
uint32_t last_destination_field_memcpyable
Definition: item.h:4390
Item * equal_fields_propagator(uchar *arg) override
If field matches a multiple equality, set a pointer to that object in the field.
Definition: item.cc:6283
longlong val_time_temporal() override
Return time value of item in packed longlong format.
Definition: item.cc:3177
String * val_str(String *) override
Definition: item.cc:3150
Item * get_tmp_table_item(THD *thd) override
If an Item is materialized in a temporary table, a different Item may have to be used in the part of ...
Definition: item.cc:3356
my_decimal * val_decimal(my_decimal *) override
Definition: item.cc:3201
Field::geometry_type get_geometry_type() const override
Definition: item.h:4563
Access_bitmask have_privileges
Definition: item.h:4445
bool add_field_to_set_processor(uchar *arg) override
Item::walk function.
Definition: item.cc:1016
Item * replace_with_derived_expr(uchar *arg) override
Assuming this expression is part of a condition that would be pushed to the WHERE clause of a materia...
Definition: item.cc:1206
bool strip_db_table_name_processor(uchar *) override
Generated fields don't need db/table names.
Definition: item.cc:11109
bool remove_column_from_bitmap(uchar *arg) override
Visitor interface for removing all column expressions (Item_field) in this expression tree from a bit...
Definition: item.cc:1032
bool is_outer_field() const override
Definition: item.h:4559
bool repoint_const_outer_ref(uchar *arg) override
If this object is the real_item of an Item_ref, repoint the result_field to field.
Definition: item.cc:11098
bool no_constant_propagation
If true, the optimizer's constant propagation will not replace this item with an equal constant.
Definition: item.h:4440
bool val_json(Json_wrapper *result) override
Get a JSON value from an Item.
Definition: item.cc:3157
bool collect_item_field_or_view_ref_processor(uchar *arg) override
Collects fields and view references that have the qualifying table in the specified query block.
Definition: item.cc:994
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item.cc:2914
bool is_valid_for_pushdown(uchar *arg) override
Check if all the columns present in this expression are from the derived table.
Definition: item.cc:1065
Item_ident super
Definition: item.h:4343
virtual bool is_asterisk() const
Checks if the current object represents an asterisk select list item.
Definition: item.h:4641
Field * tmp_table_field(TABLE *) override
Definition: item.h:4495
bool can_use_prefix_key
Definition: item.h:4452
bool m_protected_by_any_value
State used for transforming scalar subqueries to JOINs with derived tables, cf.
Definition: item.h:4403
void fix_after_pullout(Query_block *parent_query_block, Query_block *removed_query_block) override
Fix after tables have been moved from one query_block level to the parent level, e....
Definition: item.h:4347
Item_field(Name_resolution_context *context_arg, const char *db_arg, const char *table_name_arg, const char *field_name_arg)
Constructor used for internal information queries.
Definition: item.cc:2890
type_conversion_status save_in_field_inner(Field *field, bool no_conversions) override
Helper function which does all of the work for save_in_field(Field*, bool), except some error checkin...
Definition: item.cc:6795
longlong val_date_temporal_at_utc() override
Definition: item.cc:3195
void cleanup() override
Called for every Item after use (preparation and execution).
Definition: item.cc:6117
longlong val_int() override
Definition: item.cc:3171
float get_filtering_effect(THD *thd, table_map filter_for_table, table_map read_tables, const MY_BITMAP *fields_to_ignore, double rows_in_table) override
Calculate condition filtering effect for "WHERE field", which implicitly means "WHERE field <> 0".
Definition: item.cc:8150
longlong val_time_temporal_at_utc() override
Definition: item.cc:3189
Field * last_org_destination_field
Definition: item.h:4387
bool used_tables_for_level(uchar *arg) override
Return used table information for the specified query block (level).
Definition: item.cc:3271
TYPELIB * get_typelib() const override
Get the typelib information for an item of type set or enum.
Definition: item.cc:3146
bool mark_field_in_map(uchar *arg) override
Mark underlying field in read or write map of a table.
Definition: item.h:4525
bool check_function_as_value_generator(uchar *args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item.cc:1257
bool disable_constant_propagation(uchar *) override
Definition: item.h:4547
bool replace_field_processor(uchar *arg) override
A processor that replaces any Fields with a Create_field_wrapper.
Definition: sql_table.cc:7715
Field * last_destination_field
Definition: item.h:4388
Field * get_tmp_table_field() override
If this Item is being materialized into a temporary table, returns the field that is being materializ...
Definition: item.h:4494
Item_equal * find_item_equal(COND_EQUAL *cond_equal) const
Find a field among specified multiple equalities.
Definition: item.cc:6182
longlong val_int_endpoint(bool left_endp, bool *incl_endp) override
Definition: item.cc:3367
bool fix_fields(THD *, Item **) override
Resolve the name of a column reference.
Definition: item.cc:5873
Item_num super
Definition: item.h:5343
longlong val_int() override
Definition: item.h:5396
Name_string presentation
Definition: item.h:5345
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item.h:5407
Item_float(double value_par, uint decimal_par)
Definition: item.h:5376
Item_float(const POS &pos, const Name_string name_arg, double val_arg, uint decimal_par, uint length)
Definition: item.h:5365
Item * clone_item() const override
Definition: item.h:5413
void init(const char *str_arg, uint length)
This function is only called during parsing:
Definition: item.cc:7167
Item_float(const char *str_arg, uint length)
Definition: item.h:5350
double val_real() override
Definition: item.h:5392
type_conversion_status save_in_field_inner(Field *field, bool no_conversions) override
Helper function which does all of the work for save_in_field(Field*, bool), except some error checkin...
Definition: item.cc:7184
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item.cc:7192
bool eq(const Item *, bool binary_cmp) const override
Definition: item.cc:7214
bool get_time(MYSQL_TIME *ltime) override
Definition: item.h:5410
Item_num * neg() override
Definition: item.h:5416
String * val_str(String *) override
Definition: item.cc:3547
my_decimal * val_decimal(my_decimal *) override
Definition: item.cc:3554
double value
Definition: item.h:5348
Item_float(const Name_string name_arg, double val_arg, uint decimal_par, uint length)
Definition: item.h:5355
Item_float(const POS &pos, const char *str_arg, uint length)
Definition: item.h:5351
enum Type type() const override
Definition: item.h:5391
void print(const THD *, String *str, enum_query_type) const override
This method is used for to:
Definition: item.h:5433
const Name_string func_name
Definition: item.h:5426
Item * safe_charset_converter(THD *thd, const CHARSET_INFO *tocs) override
Definition: item.cc:1485
Item_func_pi(const POS &pos)
Definition: item.h:5429
Definition: item_func.h:102
Item * safe_charset_converter(THD *thd, const CHARSET_INFO *tocs) override
Definition: item.cc:7413
uint decimal_precision() const override
Definition: item.cc:7266
Item_result result_type() const override
Definition: item.h:5758
Item_result cast_to_int_type() const override
Definition: item.h:5762
my_decimal * val_decimal(my_decimal *) override
Definition: item.cc:7341
void hex_string_init(const char *str, uint str_length)
Definition: item.cc:7292
Item_result numeric_context_result_type() const override
Result type when an item appear in a numeric context.
Definition: item.h:5759
bool get_time(MYSQL_TIME *ltime) override
Definition: item.h:5755
enum Type type() const override
Definition: item.h:5739
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item.h:5752
Item_hex_string()
Definition: item.cc:7232
longlong val_int() override
Definition: item.cc:7302
Item_basic_constant super
Definition: item.h:5725
Item * clone_item() const override
Definition: item.cc:7239
static LEX_CSTRING make_hex_str(const char *str, size_t str_length)
Definition: item.cc:7250
type_conversion_status save_in_field_inner(Field *field, bool no_conversions) override
Helper function which does all of the work for save_in_field(Field*, bool), except some error checkin...
Definition: item.cc:7349
double val_real() override
Definition: item.h:5740
bool eq(const Item *item, bool binary_cmp) const override
Definition: item.cc:7402
String * val_str(String *) override
Definition: item.h:5747
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item.cc:7380
bool check_partition_func_processor(uchar *) override
Check if a partition function is allowed.
Definition: item.h:5767
Item_hex_string(const POS &pos)
Definition: item.h:5733
my_decimal * val_decimal(my_decimal *dec) override
Definition: item.h:4326
const CHARSET_INFO * charset_for_protocol() override
Definition: item.h:4334
Item_ident_for_show(Field *par_field, const char *db_arg, const char *table_name_arg)
Definition: item.h:4317
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item.h:4329
const char * table_name
Definition: item.h:4315
enum Type type() const override
Definition: item.h:4321
bool get_time(MYSQL_TIME *ltime) override
Definition: item.h:4332
longlong val_int() override
Definition: item.h:4324
double val_real() override
Definition: item.h:4323
Field * field
Definition: item.h:4313
String * val_str(String *str) override
Definition: item.h:4325
bool fix_fields(THD *thd, Item **ref) override
Definition: item.cc:2838
void make_field(Send_field *tmp_field) override
Definition: item.cc:2825
const char * db_name
Definition: item.h:4314
bool m_alias_of_expr
if this Item's name is alias of SELECT expression
Definition: item.h:4121
virtual bool alias_name_used() const
Definition: item.h:4302
const char * original_db_name() const
Definition: item.h:4231
void set_alias_of_expr()
Marks that this Item's name is alias of SELECT expression.
Definition: item.h:4286
bool is_strong_side_column_not_in_fd(uchar *arg) override
Definition: item.cc:11073
Item_ident(Name_resolution_context *context_arg, const char *db_name_arg, const char *table_name_arg, const char *field_name_arg)
Definition: item.h:4176
bool is_alias_of_expr() const
Definition: item.h:4284
Item_ident(THD *thd, Item_ident *item)
Constructor used by Item_field & Item_*_ref (see Item comment)
Definition: item.h:4208
Query_block * depended_from
Definition: item.h:4174
void fix_after_pullout(Query_block *parent_query_block, Query_block *removed_query_block) override
Fix after tables have been moved from one query_block level to the parent level, e....
Definition: item.cc:3290
const char * m_orig_field_name
Names the field in the source base table.
Definition: item.h:4120
Table_ref * cached_table
Definition: item.h:4173
void set_original_field_name(const char *name_arg)
Definition: item.h:4228
const char * m_orig_table_name
Names the original table that is the source of the field.
Definition: item.h:4110
const char * original_table_name() const
Definition: item.h:4232
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item.h:4240
Item_ident(const POS &pos, const char *db_name_arg, const char *table_name_arg, const char *field_name_arg)
Definition: item.h:4191
bool update_depended_from(uchar *) override
Definition: item.cc:926
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item.cc:906
const char * table_name
If column is from a non-aliased base table or view, name of base table or view.
Definition: item.h:4150
Name_resolution_context * context
For regularly resolved column references, 'context' points to a name resolution context object belong...
Definition: item.h:4136
friend bool insert_fields(THD *thd, Name_resolution_context *context, const char *db_name, const char *table_name, mem_root_deque< Item * >::iterator *it, bool any_privileges)
const char * db_name
Schema name of the base table or view the column is part of.
Definition: item.h:4142
const char * full_name() const override
Definition: item.cc:3074
bool aggregate_check_group(uchar *arg) override
Definition: item.cc:11068
bool is_column_not_in_fd(uchar *arg) override
Definition: item.cc:11081
const char * field_name
If column is aliased, the column alias name.
Definition: item.h:4164
void set_orignal_db_name(const char *name_arg)
Definition: item.h:4224
const char * original_field_name() const
Definition: item.h:4233
bool change_context_processor(uchar *arg) override
Definition: item.h:4278
void set_original_table_name(const char *name_arg)
Definition: item.h:4225
Item super
Definition: item.h:4081
const char * m_orig_db_name
The fields m_orig_db_name, m_orig_table_name and m_orig_field_name are maintained so that we can prov...
Definition: item.h:4100
bool aggregate_check_distinct(uchar *arg) override
Definition: item.cc:11020
Bool3 local_column(const Query_block *sl) const override
Tells if this is a column of a table whose qualifying query block is 'sl'.
Definition: item.cc:10987
Representation of IN subquery predicates of the form "left_expr IN (SELECT ...)".
Definition: item_subselect.h:572
Item_insert_value(Name_resolution_context *context_arg, Item *a)
Constructs an Item_insert_value that represents a derived table that wraps a table value constructor.
Definition: item.h:6672
bool check_function_as_value_generator(uchar *args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item.h:6700
bool eq(const Item *item, bool binary_cmp) const override
Definition: item.cc:9267
bool fix_fields(THD *, Item **) override
Resolve the name of a column reference.
Definition: item.cc:9272
Item_insert_value(const POS &pos, Item *a)
Constructs an Item_insert_value that represents a call to the deprecated VALUES function.
Definition: item.h:6663
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item.h:6677
uchar * m_rowbuffer_saved
Pointer to row buffer that was used to calculate field value offset.
Definition: item.h:6711
const bool m_is_values_function
This flag is true if the item represents a call to the deprecated VALUES function.
Definition: item.h:6717
type_conversion_status save_in_field_inner(Field *field_arg, bool no_conversions) override
Helper function which does all of the work for save_in_field(Field*, bool), except some error checkin...
Definition: item.h:6653
Item * arg
The argument for this function.
Definition: item.h:6709
bool walk(Item_processor processor, enum_walk walk, uchar *args) override
Traverses a tree of Items in prefix and/or postfix order.
Definition: item.h:6695
table_map used_tables() const override
Definition: item.h:6693
enum Type type() const override
Definition: item.h:6682
void bind_fields() override
Bind objects from the current execution context to field objects in item trees.
Definition: item.cc:9354
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item.cc:9382
void cleanup() override
Called for every Item after use (preparation and execution).
Definition: item.cc:9376
Item_int with value==0 and length==1.
Definition: item.h:5209
Item_int_0()
Definition: item.h:5211
Item_int_0(const POS &pos)
Definition: item.h:5212
Item * clone_item() const override
Definition: item.cc:7076
type_conversion_status save_in_field_inner(Field *field, bool no_conversions) override
Store this item's int-value in a field.
Definition: item.h:6356
const Item * real_item() const override
Definition: item.h:6370
Item_int_with_ref(enum_field_types field_type, longlong i, Item *ref_arg, bool unsigned_arg)
Definition: item.h:6362
Item * ref
Definition: item.h:6355
Item * real_item() override
Definition: item.h:6369
Item_result result_type() const override
Definition: item.h:5176
Item_int(const POS &pos, const LEX_STRING &num, int dummy_error=0)
Definition: item.h:5159
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item.cc:3398
bool get_time(MYSQL_TIME *ltime) override
Definition: item.h:5190
Item_int(longlong i, uint length=MY_INT64_NUM_DECIMAL_DIGITS)
Definition: item.h:5118
my_decimal * val_decimal(my_decimal *) override
Definition: item.cc:3386
bool check_function_as_value_generator(uchar *) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item.h:5203
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item.h:5187
double val_real() override
Definition: item.h:5181
Item_int(const POS &pos, const char *str_arg, uint length)
Definition: item.h:5154
Item * clone_item() const override
Definition: item.h:5191
bool check_partition_func_processor(uchar *) override
Check if a partition function is allowed.
Definition: item.h:5202
Item_int(const POS &pos, const Name_string &name_arg, longlong i, uint length)
Definition: item.h:5143
longlong value
Definition: item.h:5105
Item_int(int32 i, uint length=MY_INT32_NUM_DECIMAL_DIGITS)
Definition: item.h:5106
type_conversion_status save_in_field_inner(Field *field, bool no_conversions) override
Store this item's int-value in a field.
Definition: item.cc:7039
void init(const char *str_arg, uint length)
Init an item from a string we KNOW points to a valid longlong.
Definition: item.cc:3377
uint decimal_precision() const override
Definition: item.h:5198
bool eq(const Item *, bool) const override
Definition: item.cc:7063
Item_int(const POS &pos, int32 i, uint length=MY_INT32_NUM_DECIMAL_DIGITS)
Definition: item.h:5112
Item_int(const Item_int *item_arg)
Definition: item.h:5130
Item_int(const char *str_arg, uint length)
Definition: item.h:5150
void set_max_size(uint length)
Definition: item.h:5165
String * val_str(String *) override
Definition: item.cc:3391
Item_num super
Definition: item.h:5102
enum Type type() const override
Definition: item.h:5175
Item_int(ulonglong i, uint length=MY_INT64_NUM_DECIMAL_DIGITS)
Definition: item.h:5123
Item_int(const Name_string &name_arg, longlong i, uint length)
Definition: item.h:5137
Item_num * neg() override
Definition: item.h:5194
longlong val_int() override
Definition: item.h:5177
A class that represents a constant JSON value.
Definition: item.h:7337
unique_ptr_destroy_only< Json_wrapper > m_value
Definition: item.h:7338
longlong val_int() override
Definition: item.cc:7505
Item_result result_type() const override
Definition: item.h:7347
bool get_date(MYSQL_TIME *ltime, my_time_flags_t) override
Definition: item.cc:7520
bool get_time(MYSQL_TIME *ltime) override
Definition: item.cc:7526
void print(const THD *, String *str, enum_query_type) const override
This method is used for to:
Definition: item.cc:7483
Item * clone_item() const override
Definition: item.cc:7531
Item_json(unique_ptr_destroy_only< Json_wrapper > value, const Item_name_string &name)
Definition: item.cc:7474
my_decimal * val_decimal(my_decimal *buf) override
Definition: item.cc:7516
bool val_json(Json_wrapper *result) override
Get a JSON value from an Item.
Definition: item.cc:7489
double val_real() override
Definition: item.cc:7501
String * val_str(String *str) override
Definition: item.cc:7509
enum Type type() const override
Definition: item.h:7344
Item * value_item
Definition: item.h:4009
enum Type type() const override
Definition: item.cc:2140
type_conversion_status save_in_field_inner(Field *field, bool no_conversions) override
Helper function which does all of the work for save_in_field(Field*, bool), except some error checkin...
Definition: item.h:4038
Item * name_item
Definition: item.h:4010
Item_result result_type() const override
Definition: item.h:4030
bool fix_fields(THD *, Item **) override
Definition: item.cc:2173
bool is_null() override
The method allows to determine nullness of a complex expression without fully evaluating it,...
Definition: item.cc:2085
bool valid_args
Definition: item.h:4011
my_decimal * val_decimal(my_decimal *) override
Definition: item.cc:2068
bool cache_const_expr_analyzer(uchar **) override
Check if an item is a constant one and can be cached.
Definition: item.h:4032
longlong val_int() override
Definition: item.cc:2054
double val_real() override
Definition: item.cc:2047
Item_name_const(const POS &pos, Item *name_arg, Item *val)
Definition: item.cc:2087
Item super
Definition: item.h:4007
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item.cc:2200
bool get_time(MYSQL_TIME *ltime) override
Definition: item.cc:2080
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item.cc:2075
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item.cc:2092
String * val_str(String *sp) override
Definition: item.cc:2061
Storage for Item names.
Definition: item.h:360
void set_autogenerated(bool is_autogenerated)
Set m_is_autogenerated flag to the given value.
Definition: item.h:371
bool is_autogenerated() const
Return the auto-generated flag.
Definition: item.h:377
void copy(const char *str_arg, size_t length_arg, const CHARSET_INFO *cs_arg, bool is_autogenerated_arg)
Copy name together with autogenerated flag.
Definition: item.cc:1396
Item_name_string()
Definition: item.h:365
Item_name_string(const Name_string name)
Definition: item.h:366
bool m_is_autogenerated
Definition: item.h:362
type_conversion_status save_in_field_inner(Field *field, bool no_conversions) override
Store null in field.
Definition: item.cc:6837
Item_null()
Definition: item.h:4716
bool send(Protocol *protocol, String *str) override
Pack data in buffer for sending.
Definition: item.cc:7470
void print(const THD *, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item.h:4746
bool get_date(MYSQL_TIME *, my_time_flags_t) override
Definition: item.h:4738
Item_basic_constant super
Definition: item.h:4703
Item_result result_type() const override
Definition: item.h:4742
Item_null(const POS &pos)
Definition: item.h:4720
bool check_partition_func_processor(uchar *) override
Check if a partition function is allowed.
Definition: item.h:4752
Item * clone_item() const override
Definition: item.h:4743
longlong val_time_temporal() override
Return time value of item in packed longlong format.
Definition: item.h:4734
longlong val_date_temporal() override
Return date value of item in packed longlong format.
Definition: item.h:4735
bool is_null() override
The method allows to determine nullness of a complex expression without fully evaluating it,...
Definition: item.h:4744
bool get_time(MYSQL_TIME *) override
Definition: item.h:4739
double val_real() override
Definition: item.cc:3720
longlong val_int() override
Definition: item.cc:3726
Item * safe_charset_converter(THD *thd, const CHARSET_INFO *tocs) override
Definition: item.cc:3747
Item_null(const Name_string &name_par)
Definition: item.h:4725
bool val_json(Json_wrapper *wr) override
Get a JSON value from an Item.
Definition: item.cc:3742
String * val_str(String *str) override
Definition: item.cc:3733
my_decimal * val_decimal(my_decimal *) override
Definition: item.cc:3740
enum Type type() const override
Definition: item.h:4730
bool eq(const Item *item, bool binary_cmp) const override
Definition: item.cc:3716
void init()
Definition: item.h:4705
virtual Item_num * neg()=0
Item * safe_charset_converter(THD *thd, const CHARSET_INFO *tocs) override
Definition: item.cc:1449
Item_basic_constant super
Definition: item.h:4067
bool check_partition_func_processor(uchar *) override
Check if a partition function is allowed.
Definition: item.h:4075
Item_num()
Definition: item.h:4070
Item_num(const POS &pos)
Definition: item.h:4071
bool fix_fields(THD *, Item **) override
Prepare referenced outer field then call usual Item_ref::fix_fields.
Definition: item.cc:8866
Item * replace_outer_ref(uchar *) override
Definition: item.cc:8928
Query_block * qualifying
Qualifying query of this outer ref (i.e.
Definition: item.h:6259
bool found_in_select_list
Definition: item.h:6269
Ref_Type ref_type() const override
Definition: item.h:6301
Item * outer_ref
Definition: item.h:6262
Item_outer_ref(Name_resolution_context *context_arg, Item_ident *ident_arg, Query_block *qualifying)
Definition: item.h:6270
Item_ref super
Definition: item.h:6252
Item_outer_ref(Name_resolution_context *context_arg, Item **item, const char *db_name_arg, const char *table_name_arg, const char *field_name_arg, bool alias_of_expr_arg, Query_block *qualifying)
Definition: item.h:6283
table_map not_null_tables() const override
Return table map of tables that can't be NULL tables (tables that are used in a context where if they...
Definition: item.h:6299
table_map used_tables() const override
Definition: item.h:6296
void fix_after_pullout(Query_block *parent_query_block, Query_block *removed_query_block) override
Fix after tables have been moved from one query_block level to the parent level, e....
Definition: item.cc:8917
Item_sum * in_sum_func
Definition: item.h:6264
Dynamic parameters used as placeholders ('?') inside prepared statements.
Definition: item.h:4757
void set_data_type_actual(enum_field_types data_type, bool unsigned_val)
For use with all field types, especially integer types.
Definition: item.h:4983
enum_field_types data_type_source() const
Definition: item.h:4987
void reset()
Resets parameter after execution.
Definition: item.cc:4247
void set_null()
Definition: item.cc:3981
bool set_value(THD *, sp_rcontext *, Item **it) override
This operation is intended to store some item value in Item_param to be used later.
Definition: item.cc:4951
const String * query_val_str(const THD *thd, String *str) const
Return Param item values in string format, for generating the dynamic query used in update/binary log...
Definition: item.cc:4525
bool m_json_as_scalar
If true, when retrieving JSON data, attempt to interpret a string value as a scalar JSON value,...
Definition: item.h:4906
bool is_type_inherited() const
Definition: item.h:4935
my_decimal * val_decimal(my_decimal *) override
Definition: item.cc:4397
double real
Definition: item.h:4798
void set_param_state(enum enum_item_param_state state)
Definition: item.h:4776
bool is_type_pinned() const
Definition: item.h:4941
Mem_root_array< Item_param * > m_clones
If a query expression's text QT or text of a condition (CT) that is pushed down to a derived table,...
Definition: item.h:5098
type_conversion_status save_in_field_inner(Field *field, bool no_conversions) override
Helper function which does all of the work for save_in_field(Field*, bool), except some error checkin...
Definition: item.cc:4260
String * val_str(String *) override
Definition: item.cc:4426
void sync_clones()
This should be called after any modification done to this Item, to propagate the said modification to...
Definition: item.cc:3953
void set_collation_actual(const CHARSET_INFO *coll)
Definition: item.h:4950
bool val_json(Json_wrapper *result) override
Get a JSON value from an Item.
Definition: item.cc:4462
void set_out_param_info(Send_field *info) override
Setter of Item_param::m_out_param_info.
Definition: item.cc:5015
bool set_from_user_var(THD *thd, const user_var_entry *entry)
Set parameter value from user variable value.
Definition: item.cc:4155
Item_result m_result_type
Result type of parameter.
Definition: item.h:4891
uint pos_in_query
Definition: item.h:4922
bool is_unsigned_actual() const
Definition: item.h:4944
void set_data_type_source(enum_field_types data_type, bool unsigned_val)
Definition: item.h:4974
bool add_clone(Item_param *i)
Definition: item.h:5049
bool is_null() override
The method allows to determine nullness of a complex expression without fully evaluating it,...
Definition: item.h:5019
longlong integer
Definition: item.h:4797
void pin_data_type() override
Pin the currently resolved data type for this parameter.
Definition: item.h:4938
const CHARSET_INFO * m_collation_source
The character set and collation of the source parameter value.
Definition: item.h:4881
bool is_non_const_over_literals(uchar *) override
Definition: item.h:5043
String str_value_ptr
Definition: item.h:4794
MYSQL_TIME time
Definition: item.h:4799
const Send_field * get_out_param_info() const override
Getter of Item_param::m_out_param_info.
Definition: item.cc:5034
Item * safe_charset_converter(THD *thd, const CHARSET_INFO *tocs) override
Definition: item.cc:1536
enum_field_types data_type_actual() const
Definition: item.h:4989
my_decimal decimal_value
Definition: item.h:4795
Settable_routine_parameter * get_settable_routine_parameter() override
Definition: item.h:5052
Item_result result_type() const override
Definition: item.h:4928
enum_field_types m_data_type_actual
The actual data type of the parameter value provided by the user.
Definition: item.h:4872
void set_decimal(const char *str, ulong length)
Set decimal parameter value from string.
Definition: item.cc:4025
void make_field(Send_field *field) override
Fill meta-data information for the corresponding column in a result set.
Definition: item.cc:5046
bool is_valid_for_pushdown(uchar *arg) override
Check if all the columns present in this expression are from the derived table.
Definition: item.h:5071
enum_item_param_state
Definition: item.h:4765
@ STRING_VALUE
Definition: item.h:4770
@ DECIMAL_VALUE
Definition: item.h:4773
@ NO_VALUE
Definition: item.h:4766
@ REAL_VALUE
Definition: item.h:4769
@ TIME_VALUE
holds TIME, DATE, DATETIME
Definition: item.h:4771
@ LONG_DATA_VALUE
Definition: item.h:4772
@ INT_VALUE
Definition: item.h:4768
@ NULL_VALUE
Definition: item.h:4767
bool get_date(MYSQL_TIME *tm, my_time_flags_t fuzzydate) override
Definition: item.cc:4306
enum_field_types m_data_type_source
Parameter objects have a rather complex handling of data type, in order to consistently handle requir...
Definition: item.h:4851
enum Type type() const override
Definition: item.h:4929
enum_item_param_state m_param_state
m_param_state is used to indicate that no parameter value is available with NO_VALUE,...
Definition: item.h:4900
bool check_function_as_value_generator(uchar *args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item.h:5065
void set_int(longlong i)
Definition: item.cc:3990
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item.cc:4890
bool convert_value()
Convert value according to the following rules:
Definition: item.cc:4587
void set_data_type_inherited() override
Set the currently resolved data type for this parameter as inherited.
Definition: item.h:4932
const CHARSET_INFO * collation_actual() const
Definition: item.h:4958
bool fix_fields(THD *thd, Item **ref) override
Definition: item.cc:3825
bool get_time(MYSQL_TIME *tm) override
Definition: item.cc:4288
Send_field * m_out_param_info
Definition: item.h:5077
bool do_itemize(Parse_context *pc, Item **item) override
The core function that does the actual itemization.
Definition: item.cc:3761
void set_collation_source(const CHARSET_INFO *coll)
Definition: item.h:4946
const CHARSET_INFO * collation_source() const
Definition: item.h:4955
longlong val_int() override
Definition: item.cc:4363
bool set_str(const char *str, size_t length)
Definition: item.cc:4085
bool m_unsigned_actual
Used when actual value is integer to indicate whether value is unsigned.
Definition: item.h:4874
bool m_type_inherited
True if type of parameter is inherited from parent object (like a typecast).
Definition: item.h:4809
double val_real() override
Definition: item.cc:4324
void set_time(MYSQL_TIME *tm, enum_mysql_timestamp_type type)
Set parameter value from MYSQL_TIME value.
Definition: item.cc:4053
enum_field_types actual_data_type() const override
Retrieve actual data type for an item.
Definition: item.h:4991
enum enum_item_param_state param_state() const
Definition: item.h:4780
Item * clone_item() const override
Definition: item.cc:4862
const CHARSET_INFO * m_collation_actual
The character set and collation of the value stored in str_value, possibly after being converted from...
Definition: item.h:4889
void set_param_type_and_swap_value(Item_param *from)
Preserve the original parameter types and values when re-preparing a prepared statement.
Definition: item.cc:4924
bool m_type_pinned
True if type of parameter has been pinned, attempt to use an incompatible actual type will cause erro...
Definition: item.h:4820
bool eq(const Item *item, bool binary_cmp) const override
Definition: item.cc:4886
bool propagate_type(THD *thd, const Type_properties &type) override
Propagate data type specifications into parameters and user variables.
Definition: item.cc:3879
void set_double(double i)
Definition: item.cc:4006
void mark_json_as_scalar() override
For Items with data type JSON, mark that a string argument is treated as a scalar JSON value.
Definition: item.h:4782
bool set_longdata(const char *str, ulong length)
Definition: item.cc:4114
void copy_param_actual_type(Item_param *from)
Definition: item.cc:4473
Item_param(const POS &pos, MEM_ROOT *root, uint pos_in_query_arg)
Definition: item.cc:3754
table_map used_tables() const override
Definition: item.h:5016
void set_data_type_actual(enum_field_types data_type)
Definition: item.h:4979
Item super
Definition: item.h:4758
union Item_param::@56 value
Item_partition_func_safe_string(const Name_string name, size_t length, const CHARSET_INFO *cs=nullptr)
Definition: item.h:5672
my_decimal * val_decimal(my_decimal *) override
Definition: item.cc:5106
bool val_bool() override
Definition: item.cc:5112
String * val_str(String *s) override
Definition: item.cc:5118
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item.cc:5124
Item_in_subselect * owner
Definition: item.h:6319
Item_ref_null_helper(Name_resolution_context *context_arg, Item_in_subselect *master, Item **item)
Definition: item.h:6322
longlong val_date_temporal() override
Return date value of item in packed longlong format.
Definition: item.cc:5100
longlong val_time_temporal() override
Return time value of item in packed longlong format.
Definition: item.cc:5094
longlong val_int() override
Definition: item.cc:5088
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item.cc:8787
Item_ref super
Definition: item.h:6316
double val_real() override
Definition: item.cc:5082
table_map used_tables() const override
Definition: item.h:6338
Item * compile(Item_analyzer analyzer, uchar **arg_p, Item_transformer transformer, uchar *arg_t) override
Compile an Item_ref object with a processor and a transformer callback function.
Definition: item.cc:8636
void update_used_tables() override
Updates used tables, not null tables information and accumulates properties up the item tree,...
Definition: item.h:5987
bool created_by_in2exists() const override
Whether this Item was created by the IN->EXISTS subquery transformation.
Definition: item.h:6097
bool is_null() override
The method allows to determine nullness of a complex expression without fully evaluating it,...
Definition: item.cc:8723
bool collect_item_field_or_ref_processor(uchar *arg) override
Definition: item.cc:8798
bool is_result_field() const override
Definition: item.h:6008
void set_properties()
Definition: item.cc:8570
table_map used_tables() const override
Definition: item.h:5979
Item_field * field_for_view_update() override
Definition: item.h:6051
bool eq(const Item *item, bool binary_cmp) const override
Definition: item.h:5948
longlong val_time_temporal() override
Return time value of item in packed longlong format.
Definition: item.cc:8686
Item_ref(Name_resolution_context *context_arg, const char *db_name_arg, const char *table_name_arg, const char *field_name_arg)
Definition: item.h:5906
type_conversion_status save_in_field_inner(Field *field, bool no_conversions) override
Helper function which does all of the work for save_in_field(Field*, bool), except some error checkin...
Definition: item.cc:8743
Item_ref(THD *thd, Item_ref *item)
Definition: item.h:5934
Item ** addr(uint i) override
Definition: item.h:6065
void traverse_cond(Cond_traverser traverser, void *arg, traverse_order order) override
Definition: item.h:6031
Item * get_tmp_table_item(THD *thd) override
If an Item is materialized in a temporary table, a different Item may have to be used in the part of ...
Definition: item.cc:8767
bool clean_up_after_removal(uchar *arg) override
Clean up after removing the item from the item tree.
Definition: item.cc:8213
bool fix_fields(THD *, Item **) override
Resolve the name of a reference to a column reference.
Definition: item.cc:8296
bool check_function_as_value_generator(uchar *args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item.h:6103
bool is_valid_for_pushdown(uchar *arg) override
Check if all the columns present in this expression are from the derived table.
Definition: item.h:6112
Item_result result_type() const override
Definition: item.h:5970
void make_field(Send_field *field) override
Definition: item.cc:8751
void bring_value() override
Definition: item.h:6078
uint cols() const override
Definition: item.h:6057
Item ** ref_pointer() const
Definition: item.h:5943
bool val_json(Json_wrapper *result) override
Get a JSON value from an Item.
Definition: item.cc:8716
bool val_bool() override
Definition: item.cc:8702
bool is_outer_field() const override
Definition: item.h:6091
bool null_inside() override
Definition: item.h:6074
void set_result_field(Field *field) override
Definition: item.h:6007
bool get_time(MYSQL_TIME *ltime) override
Definition: item.h:6082
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item.cc:8653
Item * real_item() override
Definition: item.h:6010
longlong val_date_temporal() override
Return date value of item in packed longlong format.
Definition: item.cc:8694
Field * get_tmp_table_field() override
If this Item is being materialized into a temporary table, returns the field that is being materializ...
Definition: item.h:5974
Item_result cast_to_int_type() const override
Definition: item.h:6109
Ref_Type
Definition: item.h:5893
@ VIEW_REF
Definition: item.h:5893
@ REF
Definition: item.h:5893
@ AGGREGATE_REF
Definition: item.h:5893
@ OUTER_REF
Definition: item.h:5893
String * val_str(String *tmp) override
Definition: item.cc:8709
Field * result_field
Definition: item.h:5899
bool explain_subquery_checker(uchar **) override
Definition: item.h:6038
void link_referenced_item()
Definition: item.h:5945
bool check_column_in_window_functions(uchar *arg) override
Check if all the columns present in this expression are present in PARTITION clause of window functio...
Definition: item.h:6115
bool is_non_const_over_literals(uchar *) override
Definition: item.h:6102
void cleanup() override
Called for every Item after use (preparation and execution).
Definition: item.cc:8590
const Item * real_item() const override
Definition: item.h:6015
Item_ref(const POS &pos, const char *db_name_arg, const char *table_name_arg, const char *field_name_arg)
Definition: item.h:5909
Field * get_result_field() const override
Definition: item.h:6009
TYPELIB * get_typelib() const override
Get the typelib information for an item of type set or enum.
Definition: item.h:5972
bool walk(Item_processor processor, enum_walk walk, uchar *arg) override
Traverses a tree of Items in prefix and/or postfix order.
Definition: item.h:6021
enum Type type() const override
Definition: item.h:5947
bool send(Protocol *prot, String *tmp) override
This is only called from items that is not of type item_field.
Definition: item.cc:8668
bool pusheddown_depended_from
Definition: item.h:5896
bool check_column_in_group_by(uchar *arg) override
Check if all the columns present in this expression are present in GROUP BY clause of the derived tab...
Definition: item.h:6118
void fix_after_pullout(Query_block *parent_query_block, Query_block *removed_query_block) override
Fix after tables have been moved from one query_block level to the parent level, e....
Definition: item.cc:8934
virtual Ref_Type ref_type() const
Definition: item.h:6054
bool basic_const_item() const override
Returns true if this is a simple constant item like an integer, not a constant expression.
Definition: item.h:6089
Item * transform(Item_transformer, uchar *arg) override
Transform an Item_ref object with a transformer callback function.
Definition: item.cc:8606
bool repoint_const_outer_ref(uchar *arg) override
The aim here is to find a real_item() which is of type Item_field.
Definition: item.cc:11089
table_map not_null_tables() const override
Return table map of tables that can't be NULL tables (tables that are used in a context where if they...
Definition: item.h:5997
Item * element_index(uint i) override
Definition: item.h:6061
bool check_cols(uint c) override
Definition: item.h:6069
Item ** m_ref_item
Indirect pointer to the referenced item.
Definition: item.h:5903
longlong val_int() override
Definition: item.cc:8679
Item * ref_item() const
Definition: item.h:5940
my_decimal * val_decimal(my_decimal *) override
Definition: item.cc:8737
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item.cc:8730
double val_real() override
Definition: item.cc:8672
Item with result field.
Definition: item.h:5809
Item_result_field(const POS &pos)
Definition: item.h:5814
Field * tmp_table_field(TABLE *) override
Definition: item.h:5820
Field * result_field
Definition: item.h:5811
int raise_decimal_overflow()
Definition: item.h:5880
longlong raise_integer_overflow()
Definition: item.h:5875
Field * get_tmp_table_field() override
If this Item is being materialized into a temporary table, returns the field that is being materializ...
Definition: item.h:5819
Item_result_field(THD *thd, const Item_result_field *item)
Definition: item.h:5817
virtual bool resolve_type(THD *thd)=0
Resolve type-related information for this item, such as result field type, maximum size,...
longlong llrint_with_overflow_check(double realval)
Definition: item.h:5860
bool mark_field_in_map(uchar *arg) override
Mark underlying field in read or write map of a table.
Definition: item.h:5852
bool check_function_as_value_generator(uchar *) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item.h:5851
void cleanup() override
Called for every Item after use (preparation and execution).
Definition: item.cc:10928
void raise_numeric_overflow(const char *type_name)
Definition: item.cc:10934
Item_result_field()=default
double raise_float_overflow()
Definition: item.h:5870
bool is_result_field() const override
Definition: item.h:5835
table_map used_tables() const override
Definition: item.h:5821
void set_result_field(Field *field) override
Definition: item.h:5834
virtual const char * func_name() const =0
Field * get_result_field() const override
Definition: item.h:5836
Item_return_int(const char *name_arg, uint length, enum_field_types field_type_arg, longlong value_arg=0)
Definition: item.h:5715
Class that represents scalar subquery and row subquery.
Definition: item_subselect.h:271
bool is_valid_for_pushdown(uchar *arg) override
Check if all the columns present in this expression are from the derived table.
Definition: item.h:3870
Item_sp_variable(const Name_string sp_var_name)
Definition: item.cc:1854
Name_string m_name
Definition: item.h:3837
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item.cc:1938
bool val_json(Json_wrapper *result) override
Get a JSON value from an Item.
Definition: item.cc:1930
String * val_str(String *sp) override
Definition: item.cc:1889
bool fix_fields(THD *thd, Item **) override
Definition: item.cc:1857
my_decimal * val_decimal(my_decimal *decimal_value) override
Definition: item.cc:1922
void make_field(Send_field *field) override
Definition: item.h:3884
type_conversion_status save_in_field_inner(Field *field, bool no_conversions) override
Helper function which does all of the work for save_in_field(Field*, bool), except some error checkin...
Definition: item.h:3890
double val_real() override
Definition: item.cc:1873
longlong val_int() override
Definition: item.cc:1881
table_map used_tables() const override
Definition: item.h:3851
bool get_time(MYSQL_TIME *ltime) override
Definition: item.cc:1944
bool send(Protocol *protocol, String *str) override
This is only called from items that is not of type item_field.
Definition: item.h:3865
sp_head * m_sp
Definition: item.h:3845
bool is_null() override
The method allows to determine nullness of a complex expression without fully evaluating it,...
Definition: item.cc:1950
bool limit_clause_param
Definition: item.h:3911
Item_result result_type() const override
Definition: item.h:3949
bool set_value(THD *thd, sp_rcontext *ctx, Item **it) override
Definition: item.cc:2006
uint len_in_query
Definition: item.h:3930
bool is_splocal() const override
Definition: item.h:3936
uint get_var_idx() const
Definition: item.h:3946
bool val_json(Json_wrapper *result) override
Get a JSON value from an Item.
Definition: item.cc:1987
uint m_var_idx
Definition: item.h:3902
Settable_routine_parameter * get_settable_routine_parameter() override
Definition: item.h:3958
uint pos_in_query
Definition: item.h:3922
Item * this_item() override
Definition: item.cc:1969
Item_splocal(const Name_string sp_var_name, uint sp_var_idx, enum_field_types sp_var_type, uint pos_in_q=0, uint len_in_q=0)
Definition: item.cc:1956
Type type() const override
Definition: item.h:3948
Item ** this_item_addr(THD *thd, Item **) override
Definition: item.cc:1981
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item.cc:1994
void print(const THD *, String *str, enum_query_type) const override
Definition: item.h:5656
Item_static_string_func(const Name_string &name_par, const char *str, size_t length, const CHARSET_INFO *cs, Derivation dv=DERIVATION_COERCIBLE)
Definition: item.h:5642
bool check_partition_func_processor(uchar *) override
Check if a partition function is allowed.
Definition: item.h:5660
bool check_function_as_value_generator(uchar *args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item.h:5661
Item * safe_charset_converter(THD *thd, const CHARSET_INFO *tocs) override
Definition: item.cc:1564
const Name_string func_name
Definition: item.h:5639
Item_static_string_func(const POS &pos, const Name_string &name_par, const char *str, size_t length, const CHARSET_INFO *cs, Derivation dv=DERIVATION_COERCIBLE)
Definition: item.h:5647
Item_string(const POS &pos, const char *str, size_t length, const CHARSET_INFO *cs, Derivation dv=DERIVATION_COERCIBLE, uint repertoire=MY_REPERTOIRE_UNICODE30)
Definition: item.h:5482
String * val_str(String *) override
Definition: item.h:5563
Item_string(const char *str, size_t length, const CHARSET_INFO *cs, Derivation dv=DERIVATION_COERCIBLE, uint repertoire=MY_REPERTOIRE_UNICODE30)
Definition: item.h:5476
void set_cs_specified(bool cs_specified)
Set the value of m_cs_specified attribute.
Definition: item.h:5622
bool eq(const Item *item, bool binary_cmp) const override
Definition: item.cc:1589
bool is_cs_specified() const
Return true if character-set-introducer was explicitly specified in the original query for this item ...
Definition: item.h:5610
Item_string(const CHARSET_INFO *cs, Derivation dv=DERIVATION_COERCIBLE)
Definition: item.h:5490
bool get_time(MYSQL_TIME *ltime) override
Definition: item.h:5571
Item_string(const POS &pos)
Definition: item.h:5444
void append(char *str, size_t length)
Definition: item.h:5582
void init(const char *str, size_t length, const CHARSET_INFO *cs, Derivation dv, uint repertoire)
Definition: item.h:5448
bool check_partition_func_processor(uchar *) override
Check if a partition function is allowed.
Definition: item.h:5589
Item * safe_charset_converter(THD *thd, const CHARSET_INFO *tocs) override
Definition: item.cc:1498
Item_string(const POS &pos, const Name_string name_par, const LEX_CSTRING &literal, const CHARSET_INFO *cs, Derivation dv=DERIVATION_COERCIBLE, uint repertoire=MY_REPERTOIRE_UNICODE30)
Definition: item.h:5529
void mark_result_as_const()
Definition: item.h:5626
type_conversion_status save_in_field_inner(Field *field, bool no_conversions) override
Helper function which does all of the work for save_in_field(Field*, bool), except some error checkin...
Definition: item.cc:6989
Item_result result_type() const override
Definition: item.h:5574
Item * clone_item() const override
Definition: item.h:5576
bool m_cs_specified
Definition: item.h:5629
void print(const THD *thd, String *str, enum_query_type query_type) const override
Definition: item.cc:3584
Item_string(const Name_string name_par, const char *str, size_t length, const CHARSET_INFO *cs, Derivation dv=DERIVATION_COERCIBLE, uint repertoire=MY_REPERTOIRE_UNICODE30)
Definition: item.h:5500
Item * charset_converter(THD *thd, const CHARSET_INFO *tocs, bool lossless)
Convert a string item into the requested character set.
Definition: item.cc:1511
Item_basic_constant super
Definition: item.h:5441
void set_str_with_copy(const char *str_arg, uint length_arg)
Definition: item.h:5549
double val_real() override
Definition: item.cc:3656
Item_string(const POS &pos, const Name_string name_par, const char *str, size_t length, const CHARSET_INFO *cs, Derivation dv=DERIVATION_COERCIBLE, uint repertoire=MY_REPERTOIRE_UNICODE30)
Definition: item.h:5513
void set_repertoire_from_value()
Definition: item.h:5556
longlong val_int() override
Definition: item.cc:3705
enum Type type() const override
Definition: item.h:5560
my_decimal * val_decimal(my_decimal *) override
Definition: item.cc:3712
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item.h:5568
Base class that is common to all subqueries and subquery predicates.
Definition: item_subselect.h:80
Class Item_sum is the base class used for special expressions that SQL calls 'set functions'.
Definition: item_sum.h:399
Item_temporal_with_ref(enum_field_types field_type_arg, uint8 decimals_arg, longlong i, Item *ref_arg, bool unsigned_arg)
Definition: item.h:6378
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item.cc:7107
bool get_time(MYSQL_TIME *) override
Definition: item.h:6389
bool get_date(MYSQL_TIME *, my_time_flags_t) override
Definition: item.h:6385
type_conversion_status save_in_field_inner(Field *field, bool no_conversions) override
Store this item's int-value in a field.
Definition: item.cc:7045
bool get_time(MYSQL_TIME *) override
Definition: item.h:5255
bool get_date(MYSQL_TIME *, my_time_flags_t) override
Definition: item.h:5251
Item_temporal(enum_field_types field_type_arg, const Name_string &name_arg, longlong i, uint length)
Definition: item.h:5237
longlong val_time_temporal() override
Return time value of item in packed longlong format.
Definition: item.h:5249
Item * clone_item() const override
Definition: item.h:5246
Item_temporal(enum_field_types field_type_arg, longlong i)
Definition: item.h:5233
longlong val_date_temporal() override
Return date value of item in packed longlong format.
Definition: item.h:5250
longlong val_time_temporal() override
Return time value of item in packed longlong format.
Definition: item.h:6440
longlong val_date_temporal() override
Return date value of item in packed longlong format.
Definition: item.h:6441
Item_time_with_ref(uint8 decimals_arg, longlong i, Item *ref_arg)
Constructor for Item_time_with_ref.
Definition: item.h:6436
Item * clone_item() const override
Definition: item.cc:7087
Utility mixin class to be able to walk() only parts of item trees.
Definition: item.h:744
bool is_stopped(const Item *i)
Definition: item.h:761
const Item * stopped_at_item
Definition: item.h:782
void stop_at(const Item *i)
Stops walking children of this item.
Definition: item.h:752
Item_tree_walker(const Item_tree_walker &)=delete
Item_tree_walker()
Definition: item.h:746
Item_tree_walker & operator=(const Item_tree_walker &)=delete
~Item_tree_walker()
Definition: item.h:747
Represents NEW/OLD version of field of row which is changed/read in trigger.
Definition: item.h:6732
SQL_I_List< Item_trigger_field > * next_trig_field_list
Definition: item.h:6742
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item.cc:9527
void setup_field(Table_trigger_field_support *table_triggers, GRANT_INFO *table_grant_info)
Find index of Field object which will be appropriate for item representing field of row being changed...
Definition: item.cc:9411
uint field_idx
Definition: item.h:6744
GRANT_INFO * table_grants
Definition: item.h:6825
bool check_column_privileges(uchar *arg) override
Check privileges of base table column.
Definition: item.cc:9516
Item * get_tmp_table_item(THD *thd) override
If an Item is materialized in a temporary table, a different Item may have to be used in the part of ...
Definition: item.h:6781
Item_trigger_field(const POS &pos, enum_trigger_variable_type trigger_var_type_arg, const char *field_name_arg, Access_bitmask priv, const bool ro)
Definition: item.h:6759
bool set_value(THD *thd, sp_rcontext *ctx, Item **it) override
Definition: item.cc:9432
Item_trigger_field(Name_resolution_context *context_arg, enum_trigger_variable_type trigger_var_type_arg, const char *field_name_arg, Access_bitmask priv, const bool ro)
Definition: item.h:6748
bool set_value(THD *thd, Item **it)
Definition: item.h:6806
Settable_routine_parameter * get_settable_routine_parameter() override
Definition: item.h:6802
Item_trigger_field * next_trg_field
Definition: item.h:6737
void cleanup() override
Called for every Item after use (preparation and execution).
Definition: item.cc:9534
Access_bitmask want_privilege
Definition: item.h:6824
enum Type type() const override
Definition: item.h:6771
Item * copy_or_same(THD *) override
Definition: item.h:6780
Table_trigger_field_support * triggers
Definition: item.h:6746
Field * get_tmp_table_field() override
If this Item is being materialized into a temporary table, returns the field that is being materializ...
Definition: item.h:6779
enum_trigger_variable_type trigger_var_type
Definition: item.h:6735
table_map used_tables() const override
Definition: item.h:6778
bool fix_fields(THD *, Item **) override
Resolve the name of a column reference.
Definition: item.cc:9459
bool read_only
Definition: item.h:6830
void bind_fields() override
Bind objects from the current execution context to field objects in item trees.
Definition: item.cc:9495
bool check_function_as_value_generator(uchar *args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item.h:6787
bool eq(const Item *item, bool binary_cmp) const override
Definition: item.cc:9423
bool is_valid_for_pushdown(uchar *args) override
Check if all the columns present in this expression are from the derived table.
Definition: item.h:6794
void set_required_privilege(Access_bitmask privilege) override
Set required privileges for accessing the parameter.
Definition: item.h:6783
Item_type_holder stores an aggregation of name, type and type specification of UNIONS and derived tab...
Definition: item.h:7266
Item_aggregate_type super
Definition: item.h:7267
enum Type type() const override
Definition: item.h:7275
Item_type_holder(THD *thd, Item *item)
Definition: item.h:7273
String * val_str(String *) override
Definition: item.cc:10815
longlong val_int() override
Definition: item.cc:10805
bool get_date(MYSQL_TIME *, my_time_flags_t) override
Definition: item.cc:10820
bool get_time(MYSQL_TIME *) override
Definition: item.cc:10825
double val_real() override
Definition: item.cc:10800
my_decimal * val_decimal(my_decimal *) override
Definition: item.cc:10810
uint decimal_precision() const override
Definition: item.h:5292
Item * clone_item() const override
Definition: item.h:5286
Item_num * neg() override
Definition: item.cc:7118
Item_uint(const Name_string &name_arg, longlong i, uint length)
Definition: item.h:5276
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item.cc:3427
Item_uint(const POS &pos, const char *str_arg, uint length)
Definition: item.h:5270
type_conversion_status save_in_field_inner(Field *field, bool no_conversions) override
Store this item's int-value in a field.
Definition: item.cc:6995
double val_real() override
Definition: item.h:5280
String * val_str(String *) override
Definition: item.cc:3420
Item_uint(const char *str_arg, uint length)
Definition: item.h:5267
Item_uint(ulonglong i)
Definition: item.h:5275
Reference item that encapsulates both the type and the contained items of a single column of a VALUES...
Definition: item.h:7300
Item_values_column(THD *thd, Item *ref)
Definition: item.cc:10838
void set_value(Item *new_value)
Definition: item.h:7331
Item * m_value_ref
Definition: item.h:7304
table_map used_tables() const override
Definition: item.h:7332
Item_aggregate_type super
Definition: item.h:7301
longlong val_int() override
Definition: item.cc:10853
type_conversion_status save_in_field_inner(Field *field, bool no_conversions) override
Helper function which does all of the work for save_in_field(Field*, bool), except some error checkin...
Definition: item.cc:10830
my_decimal * val_decimal(my_decimal *) override
Definition: item.cc:10860
bool is_null() override
The method allows to determine nullness of a complex expression without fully evaluating it,...
Definition: item.cc:10892
bool val_json(Json_wrapper *result) override
Get a JSON value from an Item.
Definition: item.cc:10876
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item.cc:10908
enum Type type() const override
Definition: item.h:7330
bool eq(const Item *item, bool binary_cmp) const override
Definition: item.cc:10842
String * val_str(String *tmp) override
Definition: item.cc:10885
void add_used_tables(Item *value)
Definition: item.cc:10924
bool get_time(MYSQL_TIME *ltime) override
Definition: item.cc:10916
double val_real() override
Definition: item.cc:10846
bool val_bool() override
Definition: item.cc:10868
table_map m_aggregated_used_tables
Definition: item.h:7311
Class for fields from derived tables and views.
Definition: item.h:6129
Item_view_ref(Name_resolution_context *context_arg, Item **item, const char *db_name_arg, const char *alias_name_arg, const char *table_name_arg, const char *field_name_arg, Table_ref *tl)
Definition: item.h:6133
Ref_Type ref_type() const override
Definition: item.h:6199
Table_ref * first_inner_table
If this column belongs to a view that is an inner table of an outer join, then this field points to t...
Definition: item.h:6239
bool mark_field_in_map(uchar *arg) override
Mark underlying field in read or write map of a table.
Definition: item.h:6202
Item * get_tmp_table_item(THD *thd) override
If an Item is materialized in a temporary table, a different Item may have to be used in the part of ...
Definition: item.h:6193
bool is_null() override
The method allows to determine nullness of a complex expression without fully evaluating it,...
Definition: item.cc:9016
bool collect_item_field_or_view_ref_processor(uchar *arg) override
Collects fields and view references that have the qualifying table in the specified query block.
Definition: item.cc:9035
bool has_null_row() const
Definition: item.h:6231
type_conversion_status save_in_field_inner(Field *field, bool no_conversions) override
Helper function which does all of the work for save_in_field(Field*, bool), except some error checkin...
Definition: item.cc:9027
double val_real() override
Definition: item.cc:8976
bool send(Protocol *prot, String *tmp) override
This is only called from items that is not of type item_field.
Definition: item.cc:9022
bool fix_fields(THD *, Item **) override
Prepare referenced field then call usual Item_ref::fix_fields .
Definition: item.cc:8818
bool val_bool() override
Definition: item.cc:9000
Item * replace_item_view_ref(uchar *arg) override
Definition: item.cc:9062
longlong val_int() override
Definition: item.cc:8968
Item_ref super
Definition: item.h:6130
bool eq(const Item *item, bool) const override
Compare two view column references for equality.
Definition: item.cc:8957
bool subst_argument_checker(uchar **) override
Definition: item.h:6159
Table_ref * get_first_inner_table() const
Definition: item.h:6223
bool val_json(Json_wrapper *wr) override
Get a JSON value from an Item.
Definition: item.cc:9008
table_map used_tables() const override
Takes into account whether an Item in a derived table / view is part of an inner table of an outer jo...
Definition: item.h:6180
String * val_str(String *str) override
Definition: item.cc:8992
bool check_column_privileges(uchar *arg) override
Check privileges of view column.
Definition: item.cc:1332
Item * replace_view_refs_with_clone(uchar *arg) override
Assuming this expression is part of a condition that would be pushed to a materialized derived table,...
Definition: item.cc:9092
my_decimal * val_decimal(my_decimal *dec) override
Definition: item.cc:8984
Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:936
void increment_ref_count()
Increment reference count.
Definition: item.h:3370
longlong val_temporal_by_field_type()
Return date or time value of item in packed longlong format, depending on item field type.
Definition: item.h:1888
virtual double val_real()=0
uint32 max_char_length() const
Definition: item.h:3323
String * make_empty_result()
Sets the result value of the function an empty string, using the current character set.
Definition: item.h:947
virtual const CHARSET_INFO * compare_collation() const
Definition: item.h:2573
virtual float get_filtering_effect(THD *thd, table_map filter_for_table, table_map read_tables, const MY_BITMAP *fields_to_ignore, double rows_in_table)
Calculate the filter contribution that is relevant for table 'filter_for_table' for this item.
Definition: item.h:2096
virtual Field::geometry_type get_geometry_type() const
Definition: item.h:3306
String str_value
str_values's main purpose is to cache the value in save_in_field
Definition: item.h:3531
bool skip_itemize(Item **res)
Helper function to skip itemize() for grammar-allocated items.
Definition: item.h:1205
void set_nullable(bool nullable)
Definition: item.h:3640
virtual bool change_context_processor(uchar *)
Definition: item.h:2787
void set_data_type_date()
Set all type properties for Item of DATE type.
Definition: item.h:1683
void set_data_type_blob(enum_field_types type, uint32 max_l)
Set the Item to be of BLOB type.
Definition: item.h:1670
virtual bool check_column_in_group_by(uchar *arg)
Check if all the columns present in this expression are present in GROUP BY clause of the derived tab...
Definition: item.h:3095
DTCollation collation
Character set and collation properties assigned for this Item.
Definition: item.h:3538
bool get_time_from_decimal(MYSQL_TIME *ltime)
Convert val_decimal() to time in MYSQL_TIME.
Definition: item.cc:1707
ulonglong val_uint()
Definition: item.h:1919
bool has_subquery() const
Definition: item.h:3401
virtual bool subst_argument_checker(uchar **arg)
Definition: item.h:3022
CostOfItem cost() const
Definition: item.h:3312
void set_data_type_bool()
Definition: item.h:1512
longlong val_int_from_decimal()
Definition: item.cc:477
bool has_stored_program() const
Definition: item.h:3404
String * val_string_from_int(String *str)
Definition: item.cc:306
int error_int()
Get the value to return from val_int() in case of errors.
Definition: item.h:2178
virtual bool subq_opt_away_processor(uchar *)
Definition: item.h:3517
void set_data_type(enum_field_types data_type)
Set the data type of the current Item.
Definition: item.h:1501
bool error_date()
Get the value to return from get_date() in case of errors.
Definition: item.h:2202
virtual bool collect_item_field_or_view_ref_processor(uchar *)
Collects fields and view references that have the qualifying table in the specified query block.
Definition: item.h:2757
bool has_aggregation() const
Definition: item.h:3409
virtual bool find_field_processor(uchar *)
Is this an Item_field which references the given Field argument?
Definition: item.h:2793
longlong val_int_from_datetime()
Definition: item.cc:508
void set_data_type_string(ulonglong max_char_length_arg)
Set the Item to be variable length string.
Definition: item.h:1604
my_decimal * val_decimal_from_string(my_decimal *decimal_value)
Definition: item.cc:365
void aggregate_float_properties(enum_field_types type, Item **items, uint nitems)
Set max_length and decimals of function if function is floating point and result length/precision dep...
Definition: item.cc:7848
bool is_nullable() const
Definition: item.h:3639
void set_data_type_geometry()
Set the data type of the Item to be GEOMETRY.
Definition: item.h:1729
double error_real()
Get the value to return from val_real() in case of errors.
Definition: item.h:2190
my_decimal * error_decimal(my_decimal *decimal_value)
Get the value to return from val_decimal() in case of errors.
Definition: item.h:2227
virtual bool do_itemize(Parse_context *pc, Item **res)
The core function that does the actual itemization.
Definition: item.cc:754
void save_in_field_no_error_check(Field *field, bool no_conversions)
A slightly faster value of save_in_field() that returns no error value (you will need to check thd->i...
Definition: item.h:1429
virtual enum_field_types actual_data_type() const
Retrieve actual data type for an item.
Definition: item.h:1477
bool get_time_from_string(MYSQL_TIME *ltime)
Convert val_str() to time in MYSQL_TIME.
Definition: item.cc:1688
static const CHARSET_INFO * default_charset()
Definition: item.cc:1800
virtual bool split_sum_func(THD *, Ref_item_array, mem_root_deque< Item * > *)
Definition: item.h:2490
void init_make_field(Send_field *tmp_field, enum enum_field_types type)
Definition: item.cc:6452
virtual bool propagate_type(THD *thd, const Type_properties &type)
Propagate data type specifications into parameters and user variables.
Definition: item.h:1316
virtual Item * replace_func_call(uchar *)
Definition: item.h:3232
String * val_string_from_date(String *str)
Definition: item.cc:331
bool is_non_deterministic() const
Definition: item.h:2438
void set_subquery()
Set the "has subquery" property.
Definition: item.h:3394
void fix_char_length(uint32 max_char_length_arg)
Definition: item.h:3344
void operator=(Item &)=delete
virtual bool is_bool_func() const
Definition: item.h:2544
void mark_subqueries_optimized_away()
Definition: item.h:3452
String * null_return_str()
Gets the value to return from val_str() when returning a NULL value.
Definition: item.h:2251
double val_real_from_decimal()
Definition: item.cc:459
virtual bool disable_constant_propagation(uchar *)
Definition: item.h:3031
virtual longlong val_time_temporal_at_utc()
Definition: item.h:2315
virtual bool get_time(MYSQL_TIME *ltime)=0
Item()
Item constructor for general use.
Definition: item.cc:154
bool has_grouping_set_dep() const
Definition: item.h:3427
uint8 m_data_type
Data type assigned to Item.
Definition: item.h:3619
void set_data_type_float()
Set the data type of the Item to be single precision floating point.
Definition: item.h:1574
void reset_aggregation()
Reset the "has aggregation" property.
Definition: item.h:3415
virtual Item * this_item()
Definition: item.h:3133
void print_for_order(const THD *thd, String *str, enum_query_type query_type, const char *used_alias) const
Prints the item when it's part of ORDER BY and GROUP BY.
Definition: item.cc:862
bool is_temporal_with_date() const
Definition: item.h:3266
virtual bool strip_db_table_name_processor(uchar *)
Definition: item.h:3506
static Item_result type_to_result(enum_field_types type)
Definition: item.h:1046
virtual table_map used_tables() const
Definition: item.h:2338
String * val_string_from_datetime(String *str)
Definition: item.cc:321
bool get_time_from_real(MYSQL_TIME *ltime)
Convert val_real() to time in MYSQL_TIME.
Definition: item.cc:1698
virtual bool equality_substitution_analyzer(uchar **)
Definition: item.h:2970
virtual bool find_item_in_field_list_processor(uchar *)
Definition: item.h:2786
virtual longlong val_date_temporal_at_utc()
Definition: item.h:2313
virtual bool created_by_in2exists() const
Whether this Item was created by the IN->EXISTS subquery transformation.
Definition: item.h:3450
static enum_field_types string_field_type(uint32 max_bytes)
Determine correct string field type, based on string length.
Definition: item.h:1786
bool error_json()
Get the value to return from val_json() in case of errors.
Definition: item.h:2115
virtual void cleanup()
Called for every Item after use (preparation and execution).
Definition: item.h:1277
virtual Item * real_item()
Definition: item.h:2557
virtual Item * equality_substitution_transformer(uchar *)
Definition: item.h:2972
void set_stored_program()
Set the "has stored program" property.
Definition: item.h:3397
virtual bool supports_partial_update(const Field_json *field) const
Check if this expression can be used for partial update of a given JSON column.
Definition: item.h:3720
bool get_date_from_decimal(MYSQL_TIME *ltime, my_time_flags_t flags)
Convert val_decimal() to date in MYSQL_TIME.
Definition: item.cc:1620
virtual enum_field_types default_data_type() const
Get the default data (output) type for the specific item.
Definition: item.h:1490
void set_data_type_string(uint32 max_l, const CHARSET_INFO *cs)
Set the Item to be variable length string.
Definition: item.h:1622
virtual bool explain_subquery_checker(uchar **)
Definition: item.h:3026
bool get_date_from_time(MYSQL_TIME *ltime)
Convert get_time() from time to date in MYSQL_TIME.
Definition: item.cc:1638
bool get_time_from_datetime(MYSQL_TIME *ltime)
Convert datetime to time.
Definition: item.cc:1733
uint m_ref_count
Number of references to this item.
Definition: item.h:3616
virtual Field * make_string_field(TABLE *table) const
Create a field to hold a string value from an item.
Definition: item.cc:6580
virtual bool replace_equal_field_checker(uchar **)
Definition: item.h:3038
virtual my_decimal * val_decimal(my_decimal *decimal_buffer)=0
void add_accum_properties(const Item *item)
Add more accumulated properties to an Item.
Definition: item.h:3389
virtual bool check_valid_arguments_processor(uchar *)
Definition: item.h:3044
longlong val_int_from_date()
Definition: item.cc:500
virtual Settable_routine_parameter * get_settable_routine_parameter()
Definition: item.h:3263
virtual Item * equal_fields_propagator(uchar *)
Definition: item.h:3029
bool error_bool()
Get the value to return from val_bool() in case of errors.
Definition: item.h:2166
virtual type_conversion_status save_in_field_inner(Field *field, bool no_conversions)
Helper function which does all of the work for save_in_field(Field*, bool), except some error checkin...
Definition: item.cc:6874
virtual bool remove_column_from_bitmap(uchar *arg)
Visitor interface for removing all column expressions (Item_field) in this expression tree from a bit...
Definition: item.h:2783
virtual bool update_depended_from(uchar *)
Definition: item.h:2954
void set_data_type_double()
Set the data type of the Item to be double precision floating point.
Definition: item.h:1566
my_decimal * val_decimal_from_int(my_decimal *decimal_value)
Definition: item.cc:358
void set_data_type_year()
Set the data type of the Item to be YEAR.
Definition: item.h:1748
virtual uint decimal_precision() const
Definition: item.cc:774
Item_result cmp_context
Comparison context.
Definition: item.h:3598
virtual void allow_array_cast()
A helper function to ensure proper usage of CAST(.
Definition: item.h:3733
virtual Item * truth_transformer(THD *thd, Bool_test test)
Informs an item that it is wrapped in a truth test, in case it wants to transforms itself to implemen...
Definition: item.h:3160
Item(const Item &)=delete
virtual Item * replace_equal_field(uchar *)
Definition: item.h:3037
virtual Item * element_index(uint)
Definition: item.h:3144
virtual bool check_function_as_value_generator(uchar *args)
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item.cc:913
virtual void traverse_cond(Cond_traverser traverser, void *arg, traverse_order)
Definition: item.h:2694
virtual Item * safe_charset_converter(THD *thd, const CHARSET_INFO *tocs)
Definition: item.cc:1432
uint float_length(uint decimals_par) const
Definition: item.h:2374
Field * tmp_table_field_from_field_type(TABLE *table, bool fixed_length) const
Create a field based on field_type of argument.
Definition: item.cc:6615
bool get_time_from_date(MYSQL_TIME *ltime)
Convert date to time.
Definition: item.cc:1725
virtual Item * copy_andor_structure(THD *)
Definition: item.h:2551
virtual bool val_json(Json_wrapper *result)
Get a JSON value from an Item.
Definition: item.h:2068
virtual longlong val_int()=0
virtual Item_field * field_for_view_update()
Definition: item.h:3153
static constexpr uint8 PROP_GROUPING_FUNC
Set if the item or one or more of the underlying items is a GROUPING function.
Definition: item.h:3704
virtual void print(const THD *, String *str, enum_query_type) const
This method is used for to:
Definition: item.h:2462
enum_field_types data_type() const
Retrieve the derived data type of the Item.
Definition: item.h:1469
static constexpr uint8 PROP_SUBQUERY
Set of properties that are calculated by accumulation from underlying items.
Definition: item.h:3691
Item_name_string item_name
Name from query.
Definition: item.h:3539
void set_data_type_int(enum_field_types type, bool unsigned_prop, uint32 max_width)
Set the data type of the Item to be a specific integer type.
Definition: item.h:1526
void print_item_w_name(const THD *thd, String *, enum_query_type query_type) const
Definition: item.cc:832
virtual String * val_str_ascii(String *str)
Definition: item.cc:266
virtual Item * get_tmp_table_item(THD *thd)
If an Item is materialized in a temporary table, a different Item may have to be used in the part of ...
Definition: item.h:2570
virtual bool fix_fields(THD *, Item **)
Definition: item.cc:5073
virtual bool check_column_privileges(uchar *thd)
Check privileges.
Definition: item.h:2852
bool fixed
True if item has been resolved.
Definition: item.h:3628
static bool bit_func_returns_binary(const Item *a, const Item *b)
Definition: item_func.cc:3267
enum_const_item_cache
How to cache constant JSON data.
Definition: item.h:1003
@ CACHE_NONE
Don't cache.
Definition: item.h:1005
@ CACHE_JSON_VALUE
Source data is a JSON string, parse and cache result.
Definition: item.h:1007
@ CACHE_JSON_ATOM
Source data is SQL scalar, convert and cache result.
Definition: item.h:1009
virtual Item_result result_type() const
Definition: item.h:1439
bool const_item() const
Returns true if item is constant, regardless of query evaluation state.
Definition: item.h:2399
longlong val_int_from_time()
Definition: item.cc:486
bool null_value
True if item is null.
Definition: item.h:3665
virtual longlong val_time_temporal()
Return time value of item in packed longlong format.
Definition: item.cc:402
Type
Definition: item.h:971
@ SUBQUERY_ITEM
A subquery or predicate referencing a subquery.
Definition: item.h:987
@ ROW_ITEM
A row of other items.
Definition: item.h:988
@ INVALID_ITEM
Definition: item.h:972
@ INSERT_VALUE_ITEM
A value from a VALUES function (deprecated).
Definition: item.h:986
@ CACHE_ITEM
An internal item used to cache values.
Definition: item.h:989
@ REAL_ITEM
A floating-point literal value.
Definition: item.h:980
@ TRIGGER_FIELD_ITEM
An OLD or NEW field, used in trigger definitions.
Definition: item.h:993
@ SUM_FUNC_ITEM
A grouped aggregate function, or window function.
Definition: item.h:975
@ TYPE_HOLDER_ITEM
An internal item used to help aggregate a type.
Definition: item.h:990
@ REF_ITEM
An indirect reference to another item.
Definition: item.h:985
@ FIELD_ITEM
A reference to a field (column) in a table.
Definition: item.h:973
@ INT_ITEM
An integer literal value.
Definition: item.h:978
@ FUNC_ITEM
A function call reference.
Definition: item.h:974
@ COND_ITEM
An AND or OR condition.
Definition: item.h:984
@ XPATH_NODESET_ITEM
Used in XPATH expressions.
Definition: item.h:994
@ PARAM_ITEM
A dynamic parameter used in a prepared statement.
Definition: item.h:991
@ ROUTINE_FIELD_ITEM
A variable inside a routine (proc, func, trigger)
Definition: item.h:992
@ DECIMAL_ITEM
A decimal literal value.
Definition: item.h:979
@ VALUES_COLUMN_ITEM
A value from a VALUES clause.
Definition: item.h:995
@ HEX_BIN_ITEM
A hexadecimal or binary literal value.
Definition: item.h:982
@ NULL_ITEM
A NULL value.
Definition: item.h:981
@ AGGR_FIELD_ITEM
A special field for certain aggregate operations.
Definition: item.h:976
@ DEFAULT_VALUE_ITEM
A default value for a column.
Definition: item.h:983
@ STRING_ITEM
A string literal value.
Definition: item.h:977
void set_data_type_bit(uint32 max_bits)
Set the data type of the Item to be bit.
Definition: item.h:1761
virtual bool collect_scalar_subqueries(uchar *)
Definition: item.h:2951
virtual Field * tmp_table_field(TABLE *)
Definition: item.h:2332
virtual bool check_cols(uint c)
Definition: item.cc:1358
virtual bool itemize(Parse_context *pc, Item **res) final
The same as contextualize() but with additional parameter.
Definition: item.h:1251
const bool is_parser_item
true if allocated directly by parser
Definition: item.h:3618
bool is_temporal_with_time() const
Definition: item.h:3272
virtual bool visitor_processor(uchar *arg)
A processor to handle the select lex visitor framework.
Definition: item.cc:882
Parse_tree_node super
Definition: item.h:937
virtual Item * replace_item_view_ref(uchar *)
Definition: item.h:3233
bool cleanup_processor(uchar *)
cleanup() item if it is resolved ('fixed').
Definition: item.h:2709
void set_data_type_datetime(uint8 fsp)
Set all properties for Item of DATETIME type.
Definition: item.h:1707
virtual Item * replace_with_derived_expr_ref(uchar *arg)
Assuming this expression is part of a condition that would be pushed to the HAVING clause of a materi...
Definition: item.h:3116
virtual const CHARSET_INFO * charset_for_protocol()
Definition: item.h:2579
void set_aggregation()
Set the "has aggregation" property.
Definition: item.h:3412
bool get_time_from_non_temporal(MYSQL_TIME *ltime)
Convert a non-temporal type to time.
Definition: item.cc:1763
virtual uint time_precision()
TIME precision of the item: 0..6.
Definition: item.cc:799
void delete_self()
Delete this item.
Definition: item.h:3254
bool m_in_check_constraint_exec_ctx
True if item is a top most element in the expression being evaluated for a check constraint.
Definition: item.h:3681
virtual uint datetime_precision()
DATETIME precision of the item: 0..6.
Definition: item.cc:814
virtual bool send(Protocol *protocol, String *str)
This is only called from items that is not of type item_field.
Definition: item.cc:7543
bool has_compatible_context(Item *item) const
Check whether this and the given item has compatible comparison context.
Definition: item.h:3287
virtual Item * replace_view_refs_with_clone(uchar *arg)
Assuming this expression is part of a condition that would be pushed to a materialized derived table,...
Definition: item.h:3126
virtual void pin_data_type()
Pin the data type for the item.
Definition: item.h:1466
virtual bool cache_const_expr_analyzer(uchar **cache_item)
Check if an item is a constant one and can be cached.
Definition: item.cc:7721
virtual void apply_is_true()
Apply the IS TRUE truth property, meaning that an UNKNOWN result and a FALSE result are treated the s...
Definition: item.h:2535
Item * next_free
Intrusive list pointer for free list.
Definition: item.h:3527
virtual bool collect_item_field_or_ref_processor(uchar *)
Definition: item.h:2715
virtual bool val_bool()
Definition: item.cc:238
String * error_str()
Get the value to return from val_str() in case of errors.
Definition: item.h:2241
static enum_field_types type_for_variable(enum_field_types src_type)
Provide data type for a user or system variable, based on the type of the item that is assigned to th...
Definition: item.h:1104
uint8 m_accum_properties
Definition: item.h:3706
type_conversion_status save_str_value_in_field(Field *field, String *result)
Definition: item.cc:570
virtual bool check_column_in_window_functions(uchar *arg)
Check if all the columns present in this expression are present in PARTITION clause of window functio...
Definition: item.h:3087
bool get_date_from_numeric(MYSQL_TIME *ltime, my_time_flags_t fuzzydate)
Convert a numeric type to date.
Definition: item.cc:1648
virtual Item * update_value_transformer(uchar *)
Definition: item.h:3164
virtual Item * replace_outer_ref(uchar *)
Definition: item.h:3235
virtual bool reset_wf_state(uchar *arg)
Reset execution state for such window function types as determined by arg.
Definition: item.h:2828
void set_accum_properties(const Item *item)
Set accumulated properties for an Item.
Definition: item.h:3384
virtual bool repoint_const_outer_ref(uchar *arg)
This function applies only to Item_field objects referred to by an Item_ref object that has been mark...
Definition: item.h:3503
virtual bool cast_incompatible_args(uchar *)
Wrap incompatible arguments in CAST nodes to the expected data types.
Definition: item.h:2795
virtual longlong val_date_temporal()
Return date value of item in packed longlong format.
Definition: item.cc:408
bool visit_all_analyzer(uchar **)
Definition: item.h:2966
virtual table_map not_null_tables() const
Return table map of tables that can't be NULL tables (tables that are used in a context where if they...
Definition: item.h:2351
virtual Item_result numeric_context_result_type() const
Result type when an item appear in a numeric context.
Definition: item.h:1444
my_decimal * val_decimal_from_date(my_decimal *decimal_value)
Definition: item.cc:384
longlong val_temporal_with_round(enum_field_types type, uint8 dec)
Get date or time value in packed longlong format.
Definition: item.cc:420
virtual void compute_cost(CostOfItem *root_cost) const
Compute the cost of evaluating this Item.
Definition: item.h:3512
bool can_be_substituted_for_gc(bool array=false) const
Check if this item is of a type that is eligible for GC substitution.
Definition: item.cc:7801
virtual Item * compile(Item_analyzer analyzer, uchar **arg_p, Item_transformer transformer, uchar *arg_t)
Perform a generic "compilation" of the Item tree, ie transform the Item tree by adding zero or more I...
Definition: item.h:2688
type_conversion_status save_in_field_no_warnings(Field *field, bool no_conversions)
Save the item into a field but do not emit any warnings.
Definition: item.cc:1812
bool error_time()
Get the value to return from get_time() in case of errors.
Definition: item.h:2214
virtual TYPELIB * get_typelib() const
Get the typelib information for an item of type set or enum.
Definition: item.h:1796
bool has_wf() const
Definition: item.h:3418
my_decimal * val_decimal_from_real(my_decimal *decimal_value)
Definition: item.cc:350
virtual bool collect_subqueries(uchar *)
Definition: item.h:2953
void aggregate_bit_properties(Item **items, uint nitems)
Set data type and properties of a BIT column.
Definition: item.cc:8009
void set_group_by_modifier()
Set the property: this item (tree) contains a reference to a GROUP BY modifier (such as ROLLUP)
Definition: item.h:3435
virtual void fix_after_pullout(Query_block *parent_query_block, Query_block *removed_query_block)
Fix after tables have been moved from one query_block level to the parent level, e....
Definition: item.h:1296
void set_data_type_char(uint32 max_l)
Set the Item to be fixed length string.
Definition: item.h:1645
virtual bool null_inside()
Definition: item.h:3148
void set_data_type_json()
Set the data type of the Item to be JSON.
Definition: item.h:1738
bool unsigned_flag
Definition: item.h:3666
virtual bool aggregate_check_group(uchar *)
Definition: item.h:2902
bool propagate_type(THD *thd, enum_field_types def=MYSQL_TYPE_VARCHAR, bool pin=false, bool inherit=false)
Wrapper for easier calling of propagate_type(const Type_properties &).
Definition: item.h:1330
virtual bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate)=0
bool is_blob_field() const
Check if an item either is a blob field, or will be represented as a BLOB field if a field is created...
Definition: item.cc:1840
bool is_outer_reference() const
Definition: item.h:2445
virtual bool is_null()
The method allows to determine nullness of a complex expression without fully evaluating it,...
Definition: item.h:2516
bool const_for_execution() const
Returns true if item is constant during one query execution.
Definition: item.h:2411
void aggregate_temporal_properties(enum_field_types type, Item **items, uint nitems)
Set data type and fractional seconds precision for temporal functions.
Definition: item.cc:7902
longlong val_int_from_string()
Definition: item.cc:522
item_marker
< Values for member 'marker'
Definition: item.h:3558
@ MARKER_FUNC_DEP_NOT_NULL
When analyzing functional dependencies for only_full_group_by (says whether a nullable column can be ...
Definition: item.h:3570
@ MARKER_BIT
When creating an internal temporary table: says how to store BIT fields.
Definition: item.h:3567
@ MARKER_TRAVERSAL
Used during traversal to avoid deleting an item twice.
Definition: item.h:3578
@ MARKER_DISTINCT_GROUP
When we change DISTINCT to GROUP BY: used for book-keeping of fields.
Definition: item.h:3573
@ MARKER_IMPLICIT_NE_ZERO
When contextualization or itemization adds an implicit comparison '0<>' (see make_condition()),...
Definition: item.h:3562
@ MARKER_NONE
Definition: item.h:3558
@ MARKER_COND_DERIVED_TABLE
When pushing conditions down to derived table: it says a condition contains only derived table's colu...
Definition: item.h:3576
@ MARKER_CONST_PROPAG
When doing constant propagation (e.g.
Definition: item.h:3565
@ MARKER_ICP_COND_USES_INDEX_ONLY
When pushing index conditions: it says whether a condition uses only indexed columns.
Definition: item.h:3581
virtual bool is_valid_for_pushdown(uchar *arg)
Check if all the columns present in this expression are from the derived table.
Definition: item.h:3076
virtual Item * copy_or_same(THD *)
Definition: item.h:2550
Item_name_string orig_name
Original item name (if it was renamed)
Definition: item.h:3540
virtual bool collect_grouped_aggregates(uchar *)
Definition: item.h:2952
bool eq_by_collation(Item *item, bool binary_cmp, const CHARSET_INFO *cs)
Definition: item.cc:6552
virtual bool clean_up_after_removal(uchar *arg)
Clean up after removing the item from the item tree.
Definition: item.cc:7788
virtual cond_result eq_cmp_result() const
Definition: item.h:2373
uint32 max_char_length(const CHARSET_INFO *cs) const
Definition: item.h:3337
virtual Item * explain_subquery_propagator(uchar *)
Definition: item.h:3027
virtual void update_used_tables()
Updates used tables, not null tables information and accumulates properties up the item tree,...
Definition: item.h:2488
virtual bool aggregate_check_distinct(uchar *)
Definition: item.h:2900
bool evaluate(THD *thd, String *str)
Evaluate scalar item, possibly using the supplied buffer.
Definition: item.cc:7643
bool get_date_from_string(MYSQL_TIME *ltime, my_time_flags_t flags)
Convert val_str() to date in MYSQL_TIME.
Definition: item.cc:1601
void set_wf()
Set the "has window function" property.
Definition: item.h:3421
virtual bool returns_array() const
Whether the item returns array of its data type.
Definition: item.h:3728
virtual void make_field(Send_field *field)
Definition: item.cc:6473
virtual Field * get_tmp_table_field()
If this Item is being materialized into a temporary table, returns the field that is being materializ...
Definition: item.h:2327
virtual bool is_outer_field() const
Definition: item.h:3352
void set_grouping_func()
Set the property: this item is a call to GROUPING.
Definition: item.h:3447
virtual void set_result_field(Field *)
Definition: item.h:2541
bool is_abandoned() const
Definition: item.h:3514
cond_result
Definition: item.h:998
@ COND_UNDEF
Definition: item.h:998
@ COND_TRUE
Definition: item.h:998
@ COND_FALSE
Definition: item.h:998
@ COND_OK
Definition: item.h:998
virtual bool walk(Item_processor processor, enum_walk walk, uchar *arg)
Traverses a tree of Items in prefix and/or postfix order.
Definition: item.h:2604
type_conversion_status save_time_in_field(Field *field)
Definition: item.cc:531
item_marker marker
This member has several successive meanings, depending on the phase we're in (.
Definition: item.h:3597
Item_result temporal_with_date_as_number_result_type() const
Similar to result_type() but makes DATE, DATETIME, TIMESTAMP pretend to be numbers rather than string...
Definition: item.h:1451
traverse_order
Definition: item.h:1000
@ POSTFIX
Definition: item.h:1000
@ PREFIX
Definition: item.h:1000
virtual bool is_strong_side_column_not_in_fd(uchar *)
Definition: item.h:2904
virtual bool intro_version(uchar *)
Definition: item.h:2706
bool get_time_from_numeric(MYSQL_TIME *ltime)
Convert a numeric type to time.
Definition: item.cc:1740
bool m_abandoned
true if item has been fully de-referenced
Definition: item.h:3617
virtual bool inform_item_in_cond_of_tab(uchar *)
Definition: item.h:2855
static constexpr uint8 PROP_STORED_PROGRAM
Definition: item.h:3692
virtual const Item * real_item() const
Definition: item.h:2558
bool is_temporal() const
Definition: item.h:3275
bool is_temporal_with_date_and_time() const
Definition: item.h:3269
virtual const char * full_name() const
Definition: item.h:2333
auto walk_helper_thunk(uchar *arg)
Definition: item.h:2612
void set_data_type_null()
Definition: item.h:1505
uint8 decimals
Number of decimals in result when evaluating this item.
Definition: item.h:3637
virtual Item ** addr(uint)
Definition: item.h:3145
virtual Item * clone_item() const
Definition: item.h:2372
void set_data_type_string(uint32 max_l)
Set the Item to be variable length string.
Definition: item.h:1587
virtual void set_can_use_prefix_key()
Definition: item.h:1305
void set_data_type_timestamp(uint8 fsp)
Set all properties for Item of TIMESTAMP type.
Definition: item.h:1719
bool get_date_from_non_temporal(MYSQL_TIME *ltime, my_time_flags_t fuzzydate)
Convert a non-temporal type to date.
Definition: item.cc:1669
bool do_contextualize(Parse_context *) override
Definition: item.h:1191
void set_data_type_string(uint32 max_l, const DTCollation &coll)
Set the Item to be variable length string.
Definition: item.h:1634
virtual std::optional< ContainedSubquery > get_contained_subquery(const Query_block *outer_query_block)
If this item represents a IN/ALL/ANY/comparison_operator subquery, return that (along with data on ho...
Definition: item.h:1369
uint decrement_ref_count()
Decrement reference count.
Definition: item.h:3376
virtual bool find_item_processor(uchar *arg)
Definition: item.h:2788
uint32 aggregate_char_width(Item **items, uint nitems)
Calculate the maximum number of characters required by any of the items.
Definition: item.cc:7825
virtual void no_rows_in_result()
Definition: item.h:2549
virtual bool add_field_to_set_processor(uchar *)
Item::walk function.
Definition: item.h:2765
virtual bool add_field_to_cond_set_processor(uchar *)
Item::walk function.
Definition: item.h:2774
virtual Item * replace_with_derived_expr(uchar *arg)
Assuming this expression is part of a condition that would be pushed to the WHERE clause of a materia...
Definition: item.h:3105
uint reference_count() const
Definition: item.h:3367
static enum_field_types result_to_type(Item_result result)
Definition: item.h:1026
virtual Item * replace_scalar_subquery(uchar *)
When walking the item tree seeing an Item_singlerow_subselect matching a target, replace it with a su...
Definition: item.h:3223
type_conversion_status save_in_field(Field *field, bool no_conversions)
Save a temporal value in packed longlong format into a Field.
Definition: item.cc:6842
virtual bool check_gcol_depend_default_processor(uchar *args)
Check if a generated expression depends on DEFAULT function with specific column name as argument.
Definition: item.h:3067
virtual bool is_splocal() const
Definition: item.h:3257
Bool_test
< Modifier for result transformation
Definition: item.h:1013
@ BOOL_NOT_FALSE
Definition: item.h:1017
@ BOOL_IS_UNKNOWN
Definition: item.h:1015
@ BOOL_NOT_TRUE
Definition: item.h:1016
@ BOOL_IS_TRUE
Definition: item.h:1013
@ BOOL_ALWAYS_FALSE
Definition: item.h:1022
@ BOOL_NOT_UNKNOWN
Definition: item.h:1018
@ BOOL_ALWAYS_TRUE
Definition: item.h:1021
@ BOOL_IS_FALSE
Definition: item.h:1014
@ BOOL_IDENTITY
Definition: item.h:1019
@ BOOL_NEGATED
Definition: item.h:1020
String * check_well_formed_result(String *str, bool send_error, bool truncate)
Verifies that the input string is well-formed according to its character set.
Definition: item.cc:6496
virtual bool replace_field_processor(uchar *)
A processor that replaces any Fields with a Create_field_wrapper.
Definition: item.h:3472
virtual bool update_aggr_refs(uchar *)
A walker processor overridden by Item_aggregate_ref, q.v.
Definition: item.h:3247
virtual void notify_removal()
Called when an item has been removed, can be used to notify external objects about the removal,...
Definition: item.h:1283
bool may_evaluate_const(const THD *thd) const
Return true if this is a const item that may be evaluated in the current phase of statement processin...
Definition: item.cc:1350
bool aggregate_type(const char *name, Item **items, uint count)
Aggregates data types from array of items into current item.
Definition: item.cc:600
virtual Item * replace_aggregate(uchar *)
Definition: item.h:3234
virtual String * val_str(String *str)=0
bool m_nullable
True if this item may hold the NULL value(if null_value may be set to true).
Definition: item.h:3662
virtual Item * replace_item_field(uchar *)
Transform processor used by Query_block::transform_grouped_to_derived to replace fields which used to...
Definition: item.h:3231
virtual bool mark_field_in_map(uchar *arg)
Mark underlying field in read or write map of a table.
Definition: item.h:2801
virtual bool basic_const_item() const
Returns true if this is a simple constant item like an integer, not a constant expression.
Definition: item.h:2360
bool hidden
If the item is in a SELECT list (Query_block::fields) and hidden is true, the item wasn't actually in...
Definition: item.h:3676
bool get_date_from_int(MYSQL_TIME *ltime, my_time_flags_t flags)
Convert val_int() to date in MYSQL_TIME.
Definition: item.cc:1629
virtual bool get_timeval(my_timeval *tm, int *warnings)
Get timestamp in "struct timeval" format.
Definition: item.cc:1786
bool m_is_window_function
True if item represents window func.
Definition: item.h:3667
bool may_eval_const_item(const THD *thd) const
Definition: item.cc:229
void set_data_type_from_item(const Item *item)
Set data type properties of the item from the properties of another item.
Definition: item.h:1773
static bool mark_field_in_map(Mark_field *mark_field, Field *field)
Helper function for mark_field_in_map(uchar *arg).
Definition: item.h:2810
Item * cache_const_expr_transformer(uchar *item)
Cache item if needed.
Definition: item.cc:8026
String * val_string_from_time(String *str)
Definition: item.cc:341
virtual Item ** this_item_addr(THD *, Item **addr_arg)
Definition: item.h:3140
virtual bool is_result_field() const
Definition: item.h:2542
virtual const Item * this_item() const
Definition: item.h:3134
void aggregate_decimal_properties(Item **items, uint nitems)
Set data type, precision and scale of item of type decimal from list of items.
Definition: item.cc:7882
virtual Item * transform(Item_transformer transformer, uchar *arg)
Perform a generic transformation of the Item tree, by adding zero or more additional Item objects to ...
Definition: item.cc:902
virtual enum_monotonicity_info get_monotonicity_info() const
Definition: item.h:1808
virtual bool collect_item_field_processor(uchar *)
Definition: item.h:2714
virtual bool has_aggregate_ref_in_group_by(uchar *)
Check if an aggregate is referenced from within the GROUP BY clause of the query block in which it is...
Definition: item.h:2964
uint32 max_length
Maximum length of result of evaluating this item, in number of bytes.
Definition: item.h:3556
bool get_date_from_real(MYSQL_TIME *ltime, my_time_flags_t flags)
Convert val_real() to date in MYSQL_TIME.
Definition: item.cc:1611
void set_data_type_longlong()
Set the data type of the Item to be longlong.
Definition: item.h:1543
static constexpr uint8 PROP_WINDOW_FUNCTION
Definition: item.h:3694
auto analyze_helper_thunk(uchar **arg)
See CompileItem.
Definition: item.h:2618
double val_real_from_string()
Definition: item.cc:468
bool update_null_value()
Make sure the null_value member has a correct value.
Definition: item.cc:7628
virtual bool gc_subst_analyzer(uchar **)
Analyzer function for GC substitution.
Definition: item.h:3460
void rename(char *new_name)
rename item (used for views, cleanup() return original name).
Definition: item.cc:893
bool aggregate_string_properties(enum_field_types type, const char *name, Item **items, uint nitems)
Aggregate string properties (character set, collation and maximum length) for string function.
Definition: item.cc:7958
virtual bool is_column_not_in_fd(uchar *)
Definition: item.h:2906
virtual longlong val_int_endpoint(bool left_endp, bool *incl_endp)
Definition: item.h:1846
virtual enum Type type() const =0
virtual uint cols() const
Definition: item.h:3143
virtual Item * gc_subst_transformer(uchar *)
Transformer function for GC substitution.
Definition: item.h:3464
virtual bool eq(const Item *, bool binary_cmp) const
Definition: item.cc:1422
virtual Bool3 local_column(const Query_block *) const
Definition: item.h:2907
virtual void bring_value()
Definition: item.h:3150
void set_data_type_time(uint8 fsp)
Set all type properties for Item of TIME type.
Definition: item.h:1695
void set_data_type_decimal(uint8 precision, uint8 scale)
Set the data type of the Item to be decimal.
Definition: item.h:1557
CostOfItem m_cost
The cost of evaluating this item.
Definition: item.h:3625
void quick_fix_field()
Definition: item.h:1304
virtual bool used_tables_for_level(uchar *arg)
Return used table information for the specified query block (level).
Definition: item.h:2844
my_decimal * val_decimal_from_time(my_decimal *decimal_value)
Definition: item.cc:393
virtual Item_result cast_to_int_type() const
Definition: item.h:1798
type_conversion_status save_date_in_field(Field *field)
Definition: item.cc:538
bool split_sum_func2(THD *thd, Ref_item_array ref_item_array, mem_root_deque< Item * > *fields, Item **ref, bool skip_registered)
Definition: item.cc:2351
String * val_string_from_real(String *str)
Definition: item.cc:283
virtual bool is_non_const_over_literals(uchar *)
Definition: item.h:2789
virtual void mark_json_as_scalar()
For Items with data type JSON, mark that a string argument is treated as a scalar JSON value.
Definition: item.h:1358
void set_data_type_char(uint32 max_l, const CHARSET_INFO *cs)
Set the Item to be fixed length string.
Definition: item.h:1659
bool has_grouping_func() const
Definition: item.h:3442
virtual void save_org_in_field(Field *field)
Definition: item.h:1434
static constexpr uint8 PROP_AGGREGATION
Definition: item.h:3693
virtual Field * get_result_field() const
Definition: item.h:2543
longlong int_sort_key()
Produces a key suitable for filesort.
Definition: item.h:1902
bool get_time_from_int(MYSQL_TIME *ltime)
Convert val_int() to time in MYSQL_TIME.
Definition: item.cc:1716
int decimal_int_part() const
Definition: item.h:2379
virtual void set_data_type_inherited()
Set data type for item as inherited.
Definition: item.h:1460
String * val_string_from_decimal(String *str)
Definition: item.cc:313
virtual bool check_partition_func_processor(uchar *)
Check if a partition function is allowed.
Definition: item.h:3021
static constexpr uint8 PROP_HAS_GROUPING_SET_DEP
Set if the item or one or more of the underlying items contains a GROUP BY modifier (such as ROLLUP).
Definition: item.h:3699
virtual void bind_fields()
Bind objects from the current execution context to field objects in item trees.
Definition: item.h:2861
Abstraction for accessing JSON values irrespective of whether they are (started out as) binary JSON v...
Definition: json_dom.h:1153
Definition: sql_list.h:467
Class used as argument to Item::walk() together with mark_field_in_map()
Definition: item.h:256
Mark_field(TABLE *table, enum_mark_columns mark)
Definition: item.h:258
Mark_field(enum_mark_columns mark)
Definition: item.h:259
TABLE *const table
If == NULL, update map of any table.
Definition: item.h:265
const enum_mark_columns mark
How to mark the map.
Definition: item.h:267
A typesafe replacement for DYNAMIC_ARRAY.
Definition: mem_root_array.h:426
Table_ref * save_next_local
Definition: item.h:529
void save_state(Name_resolution_context *context, Table_ref *table_list)
Definition: item.h:533
Table_ref * save_next_name_resolution_table
Definition: item.h:527
void update_next_local(Table_ref *table_list)
Definition: item.h:550
Table_ref * get_first_name_resolution_table()
Definition: item.h:554
Table_ref * save_table_list
Definition: item.h:525
bool save_resolve_in_select_list
Definition: item.h:528
Table_ref * save_first_name_resolution_table
Definition: item.h:526
void restore_state(Name_resolution_context *context, Table_ref *table_list)
Definition: item.h:542
Storage for name strings.
Definition: item.h:292
void copy(const char *str)
Definition: item.h:329
Name_string(const char *str, size_t length)
Definition: item.h:308
void copy(const LEX_STRING lex)
Definition: item.h:332
void set_or_copy(const char *str, size_t length, bool is_null_terminated)
Definition: item.h:294
bool eq_safe(const Name_string name) const
Definition: item.h:347
Name_string(const LEX_STRING str, bool is_null_terminated)
Definition: item.h:315
bool eq_safe(const char *str) const
Definition: item.h:342
Name_string(const LEX_STRING str)
Definition: item.h:309
Name_string()
Definition: item.h:302
bool eq(const char *str) const
Compare name to another name in C string, case insensitively.
Definition: item.h:338
void copy(const char *str, size_t length)
Variants for copy(), for various argument combinations.
Definition: item.h:326
Name_string(const LEX_CSTRING str)
Definition: item.h:310
Name_string(const char *str, size_t length, bool is_null_terminated)
Definition: item.h:311
void copy(const char *str, size_t length, const CHARSET_INFO *cs)
Allocate space using sql_strmake() or sql_strmake_with_convert().
Definition: item.cc:1368
bool eq(const Name_string name) const
Compare name to another name in Name_string, case insensitively.
Definition: item.h:346
void copy(const Name_string str)
Definition: item.h:334
void copy(const LEX_STRING *lex)
Definition: item.h:333
Base class for parse tree nodes (excluding the Parse_tree_root hierarchy)
Definition: parse_tree_node_base.h:231
bool end_parse_tree(Show_parse_tree *tree)
Definition: parse_tree_node_base.h:398
bool begin_parse_tree(Show_parse_tree *tree)
Definition: parse_tree_node_base.h:383
Definition: protocol.h:33
This class represents a query block, aka a query specification, which is a query consisting of a SELE...
Definition: sql_lex.h:1163
Simple intrusive linked list.
Definition: sql_list.h:47
A set of THD members describing the current authenticated user.
Definition: sql_security_ctx.h:54
bool field
Definition: field.h:4662
virtual void set_out_param_info(Send_field *info)
Definition: item.h:702
virtual ~Settable_routine_parameter()=default
Settable_routine_parameter()=default
virtual void set_required_privilege(Access_bitmask privilege)
Set required privileges for accessing the parameter.
Definition: item.h:683
virtual bool set_value(THD *thd, sp_rcontext *ctx, Item **it)=0
virtual const Send_field * get_out_param_info() const
Definition: item.h:704
Holds the json parse tree being generated by the SHOW PARSE_TREE command.
Definition: parse_tree_node_base.h:140
A wrapper class for null-terminated constant strings.
Definition: sql_string.h:74
const char * ptr() const
Return string buffer.
Definition: sql_string.h:105
bool is_set() const
Check if m_ptr is set.
Definition: sql_string.h:109
size_t length() const
Return name length.
Definition: sql_string.h:113
void set(const char *str_arg, size_t length_arg)
Initialize from a C string whose length is already known.
Definition: sql_string.h:83
Using this class is fraught with peril, and you need to be very careful when doing so.
Definition: sql_string.h:167
bool append(const String &s)
Definition: sql_string.cc:419
const CHARSET_INFO * charset() const
Definition: sql_string.h:240
const char * ptr() const
Definition: sql_string.h:249
bool set_or_copy_aligned(const char *s, size_t arg_length, const CHARSET_INFO *cs)
Definition: sql_string.cc:332
void mark_as_const()
Definition: sql_string.h:247
size_t length() const
Definition: sql_string.h:241
size_t numchars() const
Definition: sql_string.cc:538
bool copy()
Definition: sql_string.cc:198
void set(String &str, size_t offset, size_t arg_length)
Definition: sql_string.h:302
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
Table_ref * outer_join_nest() const
Returns the outer join nest that this Table_ref belongs to, if any.
Definition: table.h:3462
table_map map() const
Return table map derived from table number.
Definition: table.h:3982
bool is_view() const
Return true if this represents a named view.
Definition: table.h:3126
bool is_inner_table_of_outer_join() const
Return true if this table is an inner table of some outer join.
Definition: table.h:3477
bool outer_join
True if right argument of LEFT JOIN; false in other cases (i.e.
Definition: table.h:3815
Table_ref * next_local
Definition: table.h:3558
Table_ref * any_outer_leaf_table()
Return any leaf table that is not an inner table of an outer join.
Definition: table.h:3303
TABLE * table
Definition: table.h:3641
Table_ref * next_name_resolution_table
Definition: table.h:3638
This is an interface to be used from Item_trigger_field to access information about table trigger fie...
Definition: table_trigger_field_support.h:44
virtual TABLE * get_subject_table()=0
Type properties, used to collect type information for later assignment to an Item object.
Definition: item.h:631
const uint32 m_max_length
Definition: item.h:662
const bool m_unsigned_flag
Definition: item.h:661
const DTCollation m_collation
Definition: item.h:663
Type_properties(enum_field_types type_arg)
Constructor for any signed numeric type or date type Defaults are provided for attributes like signed...
Definition: item.h:635
Type_properties(enum_field_types type_arg, const CHARSET_INFO *charset)
Constructor for character type, with explicit character set.
Definition: item.h:653
Type_properties(enum_field_types type_arg, bool unsigned_arg)
Constructor for any numeric type, with explicit signedness.
Definition: item.h:643
const enum_field_types m_type
Definition: item.h:660
Class used as argument to Item::walk() together with used_tables_for_level()
Definition: item.h:273
Used_tables(Query_block *select)
Definition: item.h:275
table_map used_tables
Accumulated used tables data.
Definition: item.h:278
Query_block *const select
Level for which data is accumulated.
Definition: item.h:277
Definition: item_cmpfunc.h:1810
Definition: mem_root_deque.h:288
A (partial) implementation of std::deque allocating its blocks on a MEM_ROOT.
Definition: mem_root_deque.h:111
iterator begin()
Definition: mem_root_deque.h:439
iterator end()
Definition: mem_root_deque.h:440
my_decimal class limits 'decimal_t' type to what we need in MySQL.
Definition: my_decimal.h:95
uint precision() const
Definition: my_decimal.h:161
bool sign() const
Definition: my_decimal.h:159
sp_head represents one instance of a stored program.
Definition: sp_head.h:383
Definition: sp_rcontext.h:77
Definition: item_func.h:3021
static MEM_ROOT mem_root
Definition: client_plugin.cc:114
#define L
Definition: ctype-tis620.cc:75
#define U
Definition: ctype-tis620.cc:74
#define E_DEC_OVERFLOW
Definition: decimal.h:144
static constexpr int DECIMAL_NOT_SPECIFIED
Definition: dtoa.h:54
enum_query_type
Query type constants (usable as bitmap flags).
Definition: enum_query_type.h:31
@ QT_NORMALIZED_FORMAT
Change all Item_basic_constant to ? (used by query rewrite to compute digest.) Un-resolved hints will...
Definition: enum_query_type.h:69
type_conversion_status
Status when storing a value in a field or converting from one datatype to another.
Definition: field.h:202
#define MY_REPERTOIRE_NUMERIC
Definition: field.h:258
enum_field_types real_type_to_type(enum_field_types real_type)
Convert temporal real types as returned by field->real_type() to field type as returned by field->typ...
Definition: field.h:393
Value_generator_source
Enum to indicate source for which value generator is used.
Definition: field.h:473
@ VGS_DEFAULT_EXPRESSION
Definition: field.h:475
@ VGS_GENERATED_COLUMN
Definition: field.h:474
#define my_charset_numeric
Definition: field.h:257
Derivation
For use.
Definition: field.h:179
@ DERIVATION_COERCIBLE
Definition: field.h:182
@ DERIVATION_SYSCONST
Definition: field.h:183
@ DERIVATION_EXPLICIT
Definition: field.h:186
@ DERIVATION_NONE
Definition: field.h:185
@ DERIVATION_NUMERIC
Definition: field.h:181
@ DERIVATION_IMPLICIT
Definition: field.h:184
@ DERIVATION_IGNORABLE
Definition: field.h:180
bool is_temporal_type_with_time(enum_field_types type)
Tests if field type is temporal and has time part, i.e.
Definition: field_common_properties.h:137
bool is_temporal_type(enum_field_types type)
Tests if field type is temporal, i.e.
Definition: field_common_properties.h:115
bool is_string_type(enum_field_types type)
Tests if field type is a string type.
Definition: field_common_properties.h:89
bool is_numeric_type(enum_field_types type)
Tests if field type is a numeric type.
Definition: field_common_properties.h:65
bool is_temporal_type_with_date(enum_field_types type)
Tests if field type is temporal and has date part, i.e.
Definition: field_common_properties.h:156
bool is_temporal_type_with_date_and_time(enum_field_types type)
Tests if field type is temporal and has date and time parts, i.e.
Definition: field_common_properties.h:177
This file contains the field type.
enum_field_types
Column types for MySQL Note: Keep include/mysql/components/services/bits/stored_program_bits....
Definition: field_types.h:55
@ MYSQL_TYPE_BOOL
Currently just a placeholder.
Definition: field_types.h:78
@ MYSQL_TYPE_TIME2
Internal to MySQL.
Definition: field_types.h:75
@ MYSQL_TYPE_VARCHAR
Definition: field_types.h:71
@ MYSQL_TYPE_LONGLONG
Definition: field_types.h:64
@ MYSQL_TYPE_LONG_BLOB
Definition: field_types.h:85
@ MYSQL_TYPE_VAR_STRING
Definition: field_types.h:87
@ MYSQL_TYPE_BLOB
Definition: field_types.h:86
@ MYSQL_TYPE_TINY
Definition: field_types.h:57
@ MYSQL_TYPE_TIME
Definition: field_types.h:67
@ MYSQL_TYPE_SET
Definition: field_types.h:82
@ MYSQL_TYPE_NEWDATE
Internal to MySQL.
Definition: field_types.h:70
@ MYSQL_TYPE_JSON
Definition: field_types.h:79
@ MYSQL_TYPE_STRING
Definition: field_types.h:88
@ MYSQL_TYPE_NULL
Definition: field_types.h:62
@ MYSQL_TYPE_ENUM
Definition: field_types.h:81
@ MYSQL_TYPE_TINY_BLOB
Definition: field_types.h:83
@ MYSQL_TYPE_LONG
Definition: field_types.h:59
@ MYSQL_TYPE_BIT
Definition: field_types.h:72
@ MYSQL_TYPE_INVALID
Definition: field_types.h:77
@ MYSQL_TYPE_GEOMETRY
Definition: field_types.h:89
@ MYSQL_TYPE_NEWDECIMAL
Definition: field_types.h:80
@ MYSQL_TYPE_DECIMAL
Definition: field_types.h:56
@ MYSQL_TYPE_TYPED_ARRAY
Used for replication only.
Definition: field_types.h:76
@ MYSQL_TYPE_DOUBLE
Definition: field_types.h:61
@ MYSQL_TYPE_MEDIUM_BLOB
Definition: field_types.h:84
@ MYSQL_TYPE_DATETIME2
Internal to MySQL.
Definition: field_types.h:74
@ MYSQL_TYPE_SHORT
Definition: field_types.h:58
@ MYSQL_TYPE_DATE
Definition: field_types.h:66
@ MYSQL_TYPE_FLOAT
Definition: field_types.h:60
@ MYSQL_TYPE_TIMESTAMP
Definition: field_types.h:63
@ MYSQL_TYPE_INT24
Definition: field_types.h:65
@ MYSQL_TYPE_DATETIME
Definition: field_types.h:68
@ MYSQL_TYPE_TIMESTAMP2
Definition: field_types.h:73
@ MYSQL_TYPE_YEAR
Definition: field_types.h:69
static const std::string dec("DECRYPTION")
void my_error(int nr, myf MyFlags,...)
Fill in and print a previously registered error message.
Definition: my_error.cc:216
static int flags[50]
Definition: hp_test1.cc:40
#define MY_COLL_ALLOW_SUPERSET_CONV
Definition: item.h:170
const Name_string null_name_string
monotonicity_info
Definition: item.h:585
@ NON_MONOTONIC
Definition: item.h:586
@ MONOTONIC_STRICT_INCREASING
Definition: item.h:589
@ MONOTONIC_INCREASING_NOT_NULL
Definition: item.h:588
@ MONOTONIC_INCREASING
Definition: item.h:587
@ MONOTONIC_STRICT_INCREASING_NOT_NULL
Definition: item.h:590
Item * GetNthVisibleField(const mem_root_deque< Item * > &fields, size_t index)
Definition: item.h:7379
constexpr float COND_FILTER_STALE_NO_CONST
A special subcase of the above:
Definition: item.h:135
constexpr uint16 NO_FIELD_INDEX((uint16)(-1))
longlong longlong_from_string_with_check(const CHARSET_INFO *cs, const char *cptr, const char *end, int unsigned_target)
Converts a string to a longlong integer, with warnings.
Definition: item.cc:3672
Bounds_checked_array< Item * > Ref_item_array
Definition: item.h:91
Item * TransformItem(Item *item, T &&transformer)
Same as WalkItem, but for Item::transform().
Definition: item.h:3796
bool agg_item_charsets_for_string_result(DTCollation &c, const char *name, Item **items, uint nitems, int item_sep=1)
Definition: item.h:4051
Item_result numeric_context_result_type(enum_field_types data_type, Item_result result_type, uint8 decimals)
Definition: item.h:143
bool WalkItem(Item *item, enum_walk walk, T &&functor)
A helper class to give in a functor to Item::walk().
Definition: item.h:3761
Cached_item * new_Cached_item(THD *thd, Item *item)
Create right type of Cached_item for an item.
Definition: item_buff.cc:55
bool agg_item_collations_for_comparison(DTCollation &c, const char *name, Item **items, uint nitems, uint flags)
Definition: item.cc:2705
Item * CompileItem(Item *item, T &&analyzer, U &&transformer)
Same as WalkItem, but for Item::compile().
Definition: item.h:3783
#define MY_COLL_DISALLOW_NONE
Definition: item.h:172
size_t CountHiddenFields(const mem_root_deque< Item * > &fields)
Definition: item.h:7374
constexpr float COND_FILTER_EQUALITY
Filtering effect for equalities: col1 = col2.
Definition: item.h:108
static uint32 char_to_byte_length_safe(uint32 char_length_arg, uint32 mbmaxlen_arg)
Definition: item.h:137
void convert_and_print(const String *from_str, String *to_str, const CHARSET_INFO *to_cs)
Helper method: Convert string to the given charset, then print.
Definition: item.cc:10950
bool(Item::* Item_analyzer)(uchar **argp)
Definition: item.h:718
Item_field * FindEqualField(Item_field *item_field, table_map reachable_tables, bool replace, bool *found)
Definition: item.cc:11127
enum monotonicity_info enum_monotonicity_info
bool agg_item_set_converter(DTCollation &coll, const char *fname, Item **args, uint nargs, uint flags, int item_sep, bool only_consts)
Definition: item.cc:2711
void item_init(void)
Init all special items.
Definition: item.cc:149
size_t CountVisibleFields(const mem_root_deque< Item * > &fields)
Definition: item.h:7369
constexpr float COND_FILTER_STALE
Value is out-of-date, will need recalculation.
Definition: item.h:119
bool ItemsAreEqual(const Item *a, const Item *b, bool binary_cmp)
Returns true iff the two items are equal, as in a->eq(b), after unwrapping refs and Item_cache object...
Definition: item.cc:11199
Item_result item_cmp_type(Item_result a, Item_result b)
Definition: item.cc:9544
void(* Cond_traverser)(const Item *item, void *arg)
Definition: item.h:728
Item *(Item::* Item_transformer)(uchar *arg)
Type for transformers used by Item::transform and Item::compile.
Definition: item.h:727
#define NAME_STRING(x)
Definition: item.h:352
bool is_null_on_empty_table(THD *thd, Item_field *i)
Check if the column reference that is currently being resolved, will be set to NULL if its qualifying...
Definition: item.cc:5759
bool AllItemsAreEqual(const Item *const *a, const Item *const *b, int num_items, bool binary_cmp)
Returns true iff all items in the two arrays (which must be of the same size) are equal,...
Definition: item.cc:11203
constexpr float COND_FILTER_BETWEEN
Filtering effect for between: col1 BETWEEN a AND b.
Definition: item.h:112
std::string ItemToString(const Item *item)
Definition: item.cc:11115
constexpr float COND_FILTER_ALLPASS
Default condition filtering (selectivity) values used by get_filtering_effect() and friends when bett...
Definition: item.h:106
const String my_null_string
void SafeIncrement(T *num)
Increment *num if it is less than its maximal value.
Definition: item.h:787
double double_from_string_with_check(const CHARSET_INFO *cs, const char *cptr, const char *end)
Definition: item.cc:3640
#define MY_COLL_ALLOW_NUMERIC_CONV
Definition: item.h:173
constexpr float COND_FILTER_INEQUALITY
Filtering effect for inequalities: col1 > col2.
Definition: item.h:110
bool agg_item_charsets_for_comparison(DTCollation &c, const char *name, Item **items, uint nitems, int item_sep=1)
Definition: item.h:4058
int stored_field_cmp_to_item(THD *thd, Field *field, Item *item)
Compare the value stored in field with the expression from the query.
Definition: item.cc:9703
#define MY_COLL_ALLOW_COERCIBLE_CONV
Definition: item.h:171
bool agg_item_charsets(DTCollation &c, const char *name, Item **items, uint nitems, uint flags, int item_sep, bool only_consts)
Definition: item.cc:2817
bool resolve_const_item(THD *thd, Item **ref, Item *cmp_item)
Substitute a const item with a simpler const item, if possible.
Definition: item.cc:9569
A better implementation of the UNIX ctype(3) library.
static constexpr uint32_t MY_CS_PUREASCII
Definition: m_ctype.h:140
int my_strcasecmp(const CHARSET_INFO *cs, const char *s1, const char *s2)
Definition: m_ctype.h:653
static constexpr uint32_t MY_REPERTOIRE_UNICODE30
Definition: m_ctype.h:156
MYSQL_STRINGS_EXPORT CHARSET_INFO my_charset_bin
Definition: ctype-bin.cc:509
MYSQL_STRINGS_EXPORT CHARSET_INFO my_charset_utf8mb4_bin
Definition: ctype-utf8.cc:7822
MYSQL_STRINGS_EXPORT unsigned my_string_repertoire(const CHARSET_INFO *cs, const char *str, size_t len)
Definition: ctype.cc:778
static constexpr uint32_t MY_REPERTOIRE_ASCII
Definition: m_ctype.h:152
MYSQL_STRINGS_EXPORT CHARSET_INFO my_charset_utf8mb3_general_ci
Definition: ctype-utf8.cc:5794
MYSQL_PLUGIN_IMPORT CHARSET_INFO * system_charset_info
Definition: mysqld.cc:1542
Various macros useful for communicating with memory debuggers, such as Valgrind.
void TRASH(void *ptr, size_t length)
Put bad content in memory to be sure it will segfault if dereferenced.
Definition: memory_debugging.h:71
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
static void bitmap_set_bit(MY_BITMAP *map, uint bit)
Definition: my_bitmap.h:80
Header for compiler-dependent features.
#define MY_COMPILER_MSVC_DIAGNOSTIC_IGNORE(X)
Definition: my_compiler.h:255
#define MY_COMPILER_DIAGNOSTIC_PUSH()
save the compiler's diagnostic (enabled warnings, errors, ...) state
Definition: my_compiler.h:285
#define MY_COMPILER_DIAGNOSTIC_POP()
restore the compiler's diagnostic (enabled warnings, errors, ...) state
Definition: my_compiler.h:286
#define DBUG_PRINT(keyword, arglist)
Definition: my_dbug.h:181
#define DBUG_FILE
Definition: my_dbug.h:194
#define DBUG_TRACE
Definition: my_dbug.h:146
It is interface module to fixed precision decimals library.
int my_decimal_int_part(uint precision, uint decimals)
Definition: my_decimal.h:83
void my_decimal_neg(decimal_t *arg)
Definition: my_decimal.h:365
int my_decimal_set_zero(my_decimal *d)
Definition: my_decimal.h:287
uint32 my_decimal_precision_to_length_no_truncation(uint precision, uint8 scale, bool unsigned_flag)
Definition: my_decimal.h:221
Utility functions for converting between ulonglong and double.
static constexpr double LLONG_MAX_DOUBLE
Definition: my_double2ulonglong.h:57
#define ulonglong2double(A)
Definition: my_double2ulonglong.h:46
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
uint8_t uint8
Definition: my_inttypes.h:63
unsigned char uchar
Definition: my_inttypes.h:52
long long int longlong
Definition: my_inttypes.h:55
int8_t int8
Definition: my_inttypes.h:62
#define MY_INT32_NUM_DECIMAL_DIGITS
Definition: my_inttypes.h:100
#define MYF(v)
Definition: my_inttypes.h:97
int32_t int32
Definition: my_inttypes.h:66
uint16_t uint16
Definition: my_inttypes.h:65
#define MY_INT64_NUM_DECIMAL_DIGITS
Definition: my_inttypes.h:103
uint32_t uint32
Definition: my_inttypes.h:67
#define UINT_MAX32
Definition: my_inttypes.h:79
MYSQL_STRINGS_EXPORT long long my_strtoll10(const char *nptr, const char **endptr, int *error)
Definition: my_strtoll10.cc:87
Common header for many mysys elements.
uint64_t table_map
Definition: my_table_map.h:30
Interface for low level time utilities.
unsigned int my_time_flags_t
Flags to str_to_datetime and number_to_datetime.
Definition: my_time.h:94
static int count
Definition: myisam_ftdump.cc:45
Common definition between mysql server & client.
#define MAX_BLOB_WIDTH
Default width for blob in bytes.
Definition: mysql_com.h:906
#define MAX_CHAR_WIDTH
Max width for a CHAR column, in number of characters.
Definition: mysql_com.h:904
Time declarations shared between the server and client API: you should not add anything to this heade...
enum_mysql_timestamp_type
Definition: mysql_time.h:45
static bool replace
Definition: mysqlimport.cc:70
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1081
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
Definition: buf0block_hint.cc:30
const std::string charset("charset")
Definition: commit_order_queue.h:34
PT & ref(PT *tp)
Definition: tablespace_impl.cc:359
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
size_t size(const char *const c)
Definition: base64.h:46
Cursor end()
A past-the-end Cursor.
Definition: rules_table_service.cc:192
std::map< Key, Value, Compare, ut::allocator< std::pair< const Key, Value > > > map
Specialization of map which uses ut_allocator.
Definition: ut0new.h:2892
#define NullS
Definition of the null string (a null pointer of type char *), used in some of our string handling co...
Definition: nulls.h:33
struct result result
Definition: result.h:34
File containing constants that can be used throughout the server.
constexpr const table_map RAND_TABLE_BIT
Definition: sql_const.h:112
constexpr const int MAX_TIME_WIDTH
-838:59:59
Definition: sql_const.h:71
constexpr const int MAX_DATE_WIDTH
YYYY-MM-DD.
Definition: sql_const.h:69
constexpr const size_t STRING_BUFFER_USUAL_SIZE
Definition: sql_const.h:125
constexpr const table_map OUTER_REF_TABLE_BIT
Definition: sql_const.h:111
constexpr const int MAX_DOUBLE_STR_LENGTH
-[digits].E+###
Definition: sql_const.h:157
enum_walk
Enumeration for {Item,Query_block[_UNIT],Table_function}walk.
Definition: sql_const.h:288
bool(Item::*)(unsigned char *) Item_processor
Processor type for {Item,Query_block[_UNIT],Table_function}walk.
Definition: sql_const.h:306
constexpr const table_map INNER_TABLE_BIT
Definition: sql_const.h:110
constexpr const int MAX_DATETIME_WIDTH
YYYY-MM-DD HH:MM:SS.
Definition: sql_const.h:77
enum_mark_columns
Definition: sql_const.h:231
Our own string classes, used pervasively throughout the executor.
case opt name
Definition: sslopt-case.h:29
Access paths are a query planning structure that correspond 1:1 to iterators, in that an access path ...
Definition: access_path.h:213
Definition: m_ctype.h:423
unsigned mbmaxlen
Definition: m_ctype.h:447
Struct used to pass around arguments to/from check_function_as_value_generator.
Definition: item.h:492
int err_code
the error code found during check(if any)
Definition: item.h:499
int col_index
the order of the column in table
Definition: item.h:497
const char * banned_function_name
the name of the function which is not allowed
Definition: item.h:506
Value_generator_source source
Definition: item.h:504
int get_unnamed_function_error_code() const
Return the correct error code, based on whether or not if we are checking for disallowed functions in...
Definition: item.h:511
Check_function_as_value_generator_parameters(int default_error_code, Value_generator_source val_gen_src)
Definition: item.h:493
This class represents a subquery contained in some subclass of Item_subselect,.
Definition: item.h:868
Strategy strategy
The strategy for executing the subquery.
Definition: item.h:902
Strategy
The strategy for executing the subquery.
Definition: item.h:870
@ kMaterializable
An independent subquery that is materialized, e.g.
@ kIndependentSingleRow
An independent single-row subquery that is evaluated once, e.g.
@ kNonMaterializable
A subquery that is reevaluated for each row, e.g.
AccessPath * path
The root path of the subquery.
Definition: item.h:899
int row_width
The width (in bytes) of the subquery's rows.
Definition: item.h:908
The current state of the privilege checking process for the current user, SQL statement and SQL objec...
Definition: table.h:369
Aggregate_ref_update(Item_sum *target, Query_block *owner)
Definition: item.h:3240
Query_block * m_owner
Definition: item.h:3239
Item_sum * m_target
Definition: item.h:3238
Aggregate_replacement(Item_sum *target, Item_field *replacement)
Definition: item.h:3213
Item_field * m_replacement
Definition: item.h:3212
Item_sum * m_target
Definition: item.h:3211
Context struct used by walk method collect_scalar_subqueries to accumulate information about scalar s...
Definition: item.h:2938
Item * m_join_condition_context
Definition: item.h:2944
Location
Definition: item.h:2939
@ L_JOIN_COND
Definition: item.h:2939
@ L_HAVING
Definition: item.h:2939
@ L_SELECT
Definition: item.h:2939
@ L_WHERE
Definition: item.h:2939
bool m_collect_unconditionally
Definition: item.h:2945
int8 m_location
we are currently looking at this kind of clause, cf. enum Location
Definition: item.h:2943
Collect_scalar_subquery_info()=default
std::vector< Css_info > m_list
accumulated all scalar subqueries found
Definition: item.h:2941
Minion class under Collect_scalar_subquery_info.
Definition: item.h:2915
Item * m_join_condition
Where did we find item above? Used when m_location == L_JOIN_COND, nullptr for other locations.
Definition: item.h:2923
bool m_add_coalesce
If true, add a COALESCE around replaced subquery: used for implicitly grouped COUNT() in subquery sel...
Definition: item.h:2928
table_map m_correlation_map
Definition: item.h:2920
Item_singlerow_subselect * item
the scalar subquery
Definition: item.h:2919
int8 m_location
set of locations
Definition: item.h:2917
bool m_implicitly_grouped_and_no_union
If true, we can forego cardinality checking of the derived table.
Definition: item.h:2925
Mode m_default_value
Definition: item.h:3182
Field * m_target
The field to be replaced.
Definition: item.h:3175
Item_field_replacement(Field *target, Item_field *item, Query_block *select, Mode default_value=Mode::CONFLATE)
Definition: item.h:3183
Mode
Definition: item.h:3177
Item_field * m_item
The replacement field.
Definition: item.h:3176
Item_func * m_target
The function call to be replaced.
Definition: item.h:3192
Item_func_call_replacement(Item_func *func_target, Item_field *item, Query_block *select)
Definition: item.h:3194
Item_field * m_item
The replacement field.
Definition: item.h:3193
Item_replacement(Query_block *transformed_block, Query_block *current_block)
Definition: item.h:3171
Query_block * m_curr_block
Transformed query block or a contained.
Definition: item.h:3168
Query_block * m_trans_block
Transformed query block.
Definition: item.h:3167
Item * m_target
The item identifying the view_ref to be replaced.
Definition: item.h:3202
Field * m_field
The replacement field.
Definition: item.h:3203
Item_view_ref_replacement(Item *target, Field *field, Query_block *select)
Definition: item.h:3206
List< Item_func > stack
Definition: item.h:3035
< Argument object to change_context_processor
Definition: item.h:4274
Name_resolution_context * m_context
Definition: item.h:4275
Change_context(Name_resolution_context *context)
Definition: item.h:4276
Argument structure for walk processor Item::update_depended_from.
Definition: item.h:4291
Query_block * old_depended_from
Definition: item.h:4292
Query_block * new_depended_from
Definition: item.h:4293
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:83
void * Alloc(size_t length)
Allocate memory.
Definition: my_alloc.h:145
Definition: mysql_lex_string.h:40
const char * str
Definition: mysql_lex_string.h:41
size_t length
Definition: mysql_lex_string.h:42
Definition: mysql_lex_string.h:35
char * str
Definition: mysql_lex_string.h:36
size_t length
Definition: mysql_lex_string.h:37
Definition: mysql_time.h:82
Definition: my_bitmap.h:43
Bison "location" class.
Definition: parse_location.h:43
Name_resolution_context * next_context
Link to next name res context with the same query block as the base.
Definition: item.h:409
Name_resolution_context()
Definition: item.h:465
Table_ref * view_error_handler_arg
Definition: item.h:447
Name_resolution_context * outer_context
Definition: item.h:407
Security_context * security_ctx
Definition: item.h:463
Table_ref * first_name_resolution_table
Definition: item.h:427
void init()
Definition: item.h:475
Table_ref * last_name_resolution_table
Definition: item.h:432
Query_block * query_block
Definition: item.h:439
bool resolve_in_select_list
When true, items are resolved in this context against Query_block::item_list, SELECT_lex::group_list ...
Definition: item.h:457
bool view_error_handler
Definition: item.h:446
Table_ref * table_list
Definition: item.h:419
void resolve_in_table_list_only(Table_ref *tables)
Definition: item.h:482
Environment data for the contextualization phase.
Definition: parse_tree_node_base.h:420
const char * alias
alias or table name
Definition: table.h:1637
bool has_null_row() const
Definition: table.h:2148
MY_BITMAP * fields_set_during_insert
A pointer to the bitmap of table fields (columns), which are explicitly set in the INSERT INTO statem...
Definition: table.h:1716
bool alias_name_used
Definition: table.h:1842
bool is_nullable() const
Return whether table is nullable.
Definition: table.h:2050
Definition: completion_hash.h:35
Descriptor of what and how to cache for Item::cache_const_expr_transformer/analyzer.
Definition: item.h:3742
Item * cache_item
Item to cache. Used as a binary flag, but kept as Item* for assertion.
Definition: item.h:3747
List< Item > stack
Path from the expression's top to the current item in item tree used to track parent of current item ...
Definition: item.h:3745
Item::enum_const_item_cache cache_arg
How to cache JSON data.
Definition: item.h:3749
Replacement of system's struct timeval to ensure we can carry 64 bit values even on a platform which ...
Definition: my_time_t.h:45
This file defines all base public constants related to triggers in MySQL.
enum_trigger_variable_type
Enum constants to designate NEW and OLD trigger pseudo-variables.
Definition: trigger_def.h:73
Item_result
Type of the user defined function return slot and arguments.
Definition: udf_registration_types.h:39
@ STRING_RESULT
not valid for UDFs
Definition: udf_registration_types.h:41
@ DECIMAL_RESULT
not valid for UDFs
Definition: udf_registration_types.h:45
@ REAL_RESULT
char *
Definition: udf_registration_types.h:42
@ INT_RESULT
double
Definition: udf_registration_types.h:43
@ INVALID_RESULT
Definition: udf_registration_types.h:40
@ ROW_RESULT
long long
Definition: udf_registration_types.h:44