1#ifndef ITEM_FUNC_INCLUDED
2#define ITEM_FUNC_INCLUDED
51#include "mysqld_error.h"
121 if (
args ==
nullptr) {
496 bool eq(
const Item *item,
bool binary_cmp)
const override;
545 uint nitems,
int item_sep = 1) {
555 uint nitems,
int item_sep = 1) {
571 replace->stack.push_front(
this);
576 pointer_cast<Replace_equal *>(arg)->stack.pop();
764 const MY_BITMAP *fields_to_ignore)
const;
781 pointer_cast<Check_function_as_value_generator_parameters *>(
1053 const char *
func_name()
const override {
return "connection_id"; }
1059 pointer_cast<Check_function_as_value_generator_parameters *>(
1072 const char *
func_name()
const override {
return "cast_as_signed"; }
1085 const char *
func_name()
const override {
return "cast_as_unsigned"; }
1118 const char *
func_name()
const override {
return "cast_as_decimal"; }
1130 obj->
add_alias(
"is_double", create_dom_ptr<Json_boolean>(
1153 const char *
func_name()
const override {
return "cast_as_real"; }
1437 const char *
func_name()
const override {
return "ceiling"; }
1471 return truncate ?
"truncate" :
"round";
1512 pointer_cast<Check_function_as_value_generator_parameters *>(
1549 const char *
func_name()
const override {
return "degrees"; }
1557 const char *
func_name()
const override {
return "radians"; }
1650 const char *
func_name()
const override {
return "greatest"; }
1699 const char *
func_name()
const override {
return "rollup_group_item"; }
1730 bool eq(
const Item *item,
bool binary_cmp)
const override;
1765 const char *
func_name()
const override {
return "bit_length"; }
1775 const char *
func_name()
const override {
return "char_length"; }
1788 const char *
func_name()
const override {
return "coercibility"; }
1827 return "validate_password_strength";
1884 const char *
func_name()
const override {
return "find_in_set"; }
1960 template <
class Char_func,
class Int_func>
1962 template <
class Int_func>
1979 return eval_str_op(
str, std::bit_or<char>(), std::bit_or<ulonglong>());
1992 return eval_str_op(
str, std::bit_and<char>(), std::bit_and<ulonglong>());
2005 return eval_str_op(
str, std::bit_xor<char>(), std::bit_xor<ulonglong>());
2013 const char *
func_name()
const override {
return "bit_count"; }
2030 template <
bool to_left>
2032 template <
bool to_left>
2091 const char *
func_name()
const override {
return "last_insert_id"; }
2104 pointer_cast<Check_function_as_value_generator_parameters *>(
2125 const char *
func_name()
const override {
return "benchmark"; }
2137 pointer_cast<Check_function_as_value_generator_parameters *>(
2166 pointer_cast<Check_function_as_value_generator_parameters *>(
2205 pointer_cast<Check_function_as_value_generator_parameters *>(
2302 const char *end_not_used;
2306 &end_not_used, &err_not_used)
2314 nullptr, &err_not_used)
2319 if (!res)
return nullptr;
2348 const char *
func_name()
const override {
return "get_lock"; }
2359 pointer_cast<Check_function_as_value_generator_parameters *>(
2376 const char *
func_name()
const override {
return "release_lock"; }
2386 pointer_cast<Check_function_as_value_generator_parameters *>(
2401 const char *
func_name()
const override {
return "release_all_locks"; }
2409 pointer_cast<Check_function_as_value_generator_parameters *>(
2432 const char *
func_name()
const override {
return "source_pos_wait"; }
2443 pointer_cast<Check_function_as_value_generator_parameters *>(
2471 const char *
func_name()
const override {
return "can_access_database"; }
2483 const char *
func_name()
const override {
return "can_access_table"; }
2495 const char *
func_name()
const override {
return "can_access_user"; }
2507 const char *
func_name()
const override {
return "can_access_trigger"; }
2520 const char *
func_name()
const override {
return "can_access_routine"; }
2532 const char *
func_name()
const override {
return "can_access_event"; }
2544 const char *
func_name()
const override {
return "can_access_resource_group"; }
2557 const char *
func_name()
const override {
return "can_access_view"; }
2569 const char *
func_name()
const override {
return "can_access_column"; }
2585 const char *
func_name()
const override {
return "is_visible_dd_object"; }
2599 const char *
func_name()
const override {
return "internal_table_rows"; }
2614 const char *
func_name()
const override {
return "internal_avg_row_length"; }
2629 const char *
func_name()
const override {
return "internal_data_length"; }
2644 const char *
func_name()
const override {
return "internal_max_data_length"; }
2659 const char *
func_name()
const override {
return "internal_index_length"; }
2674 const char *
func_name()
const override {
return "internal_data_free"; }
2689 const char *
func_name()
const override {
return "internal_auto_increment"; }
2704 const char *
func_name()
const override {
return "internal_checksum"; }
2717 const char *
func_name()
const override {
return "internal_keys_disabled"; }
2733 return "internal_index_column_cardinality";
2748 const char *
func_name()
const override {
return "internal_dd_char_length"; }
2764 return "internal_get_view_warning_or_error";
2785 return "get_dd_index_sub_part_length";
2796 const char *
func_name()
const override {
return "internal_tablespace_id"; }
2815 return "internal_tablespace_logfile_group_number";
2835 return "internal_tablespace_free_extents";
2855 return "internal_tablespace_total_extents";
2875 return "internal_tablespace_extent_size";
2895 return "internal_tablespace_initial_size";
2915 return "internal_tablespace_maximum_size";
2935 return "internal_tablespace_autoextend_size";
2955 return "internal_tablespace_version";
2975 return "internal_tablespace_data_free";
3009 pointer_cast<Check_function_as_value_generator_parameters *>(
3012 ? ER_CHECK_CONSTRAINT_VARIABLES
3013 : ER_DEFAULT_VAL_GENERATED_VARIABLES;
3213 double val_real(
bool *null_value)
const;
3262 bool check(
bool use_result_field);
3272 const char *
func_name()
const override {
return "set_user_var"; }
3275 bool can_use_result_field);
3286 bool no_conversions)
override {
3321 const char *
func_name()
const override {
return "get_user_var"; }
3323 bool eq(
const Item *item,
bool binary_cmp)
const override;
3377#define GET_SYS_VAR_CACHE_LONG 1
3378#define GET_SYS_VAR_CACHE_DOUBLE 2
3379#define GET_SYS_VAR_CACHE_STRING 4
3424 template <
typename T>
3451 const char *
func_name()
const override {
return "get_system_var"; }
3452 bool eq(
const Item *item,
bool binary_cmp)
const override;
3533 bool eq(
const Item *,
bool binary_cmp)
const override;
3547 pointer_cast<Check_function_as_value_generator_parameters *>(
3605 double rows_in_table)
override;
3728 assert(tr && tr->
file);
3766 const char *
func_name()
const override {
return "is_free_lock"; }
3776 pointer_cast<Check_function_as_value_generator_parameters *>(
3793 const char *
func_name()
const override {
return "is_used_lock"; }
3803 pointer_cast<Check_function_as_value_generator_parameters *>(
3819 const char *
func_name()
const override {
return "row_count"; }
3826 pointer_cast<Check_function_as_value_generator_parameters *>(
3863 const LEX_STRING &fn_name,
bool use_explicit_name,
3907 pointer_cast<Check_function_as_value_generator_parameters *>(
3926 const char *
func_name()
const override {
return "found_rows"; }
3933 pointer_cast<Check_function_as_value_generator_parameters *>(
3949 const char *
func_name()
const override {
return "uuid_short"; }
3958 pointer_cast<Check_function_as_value_generator_parameters *>(
3990 return "internal_is_mandatory_role";
4005 return "internal_use_terminology_previous";
4024 const char *
func_name()
const override {
return "internal_is_enabled_role"; }
4056 bool unsafe_for_replication);
4060 bool unsafe_for_replication) {
4062 unsafe_for_replication);
4071 Field **found =
nullptr);
Kerberos Client Authentication nullptr
Definition: auth_kerberos_client_plugin.cc:251
int64 query_id_t
Definition: binlog.h:72
Class to log audit event EVENT_TRACKING_GLOBAL_VARIABLE_GET.
Definition: item_func.h:3384
Audit_global_variable_get_event(THD *thd, Item_func_get_system_var *item, uchar cache_type)
Definition: item_func.cc:7156
THD * m_thd
Definition: item_func.h:3392
~Audit_global_variable_get_event()
Definition: item_func.cc:7169
bool m_audit_event
Definition: item_func.h:3411
Item_func_get_system_var * m_item
Definition: item_func.h:3395
uchar m_val_type
Definition: item_func.h:3404
This class represents the cost of evaluating an Item.
Definition: item.h:797
void MarkExpensive()
Definition: item.h:806
void set_numeric()
Definition: item.h:215
const CHARSET_INFO * collation
Definition: item.h:181
Wrapper for struct ft_hints.
Definition: handler.h:4125
uint get_flags() const
Get Ft_hints flags.
Definition: handler.h:4188
enum ft_operation get_op_type() const
Get Ft_hints operation type.
Definition: handler.h:4181
void set_hint_op(enum ft_operation type, double value)
Set comparison operation type and and value for master MATCH function.
Definition: handler.h:4143
Definition: item_func.h:1304
Item_dec_func(const POS &pos, Item *a)
Definition: item_func.h:1307
Item_dec_func(const POS &pos, Item *a, Item *b)
Definition: item_func.h:1309
Item_dec_func(Item *a)
Definition: item_func.h:1306
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.cc:2802
Definition: item_func.h:1289
enum Functype functype() const override
Definition: item_func.h:1299
double real_op() override
Performs the operation that this functions implements when the result type is REAL.
Definition: item_func.cc:2771
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_func.h:1298
my_decimal * decimal_op(my_decimal *) override
Performs the operation that this functions implements when the result type is DECIMAL.
Definition: item_func.cc:2786
const char * func_name() const override
Definition: item_func.h:1295
bool check_partition_func_processor(uchar *) override
Check if a partition function is allowed.
Definition: item_func.h:1297
longlong int_op() override
Performs the operation that this functions implements when the result type is INT.
Definition: item_func.cc:2777
Item_func_abs(const POS &pos, Item *a)
Definition: item_func.h:1291
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.cc:2796
Definition: item_func.h:1369
const char * func_name() const override
Definition: item_func.h:1373
double val_real() override
Definition: item_func.cc:2898
enum Functype functype() const override
Definition: item_func.h:1374
Item_func_acos(const POS &pos, Item *a)
Definition: item_func.h:1371
Definition: item_func.h:1159
Item_func_additive_op(const POS &pos, Item *a, Item *b)
Definition: item_func.h:1162
Item_func_additive_op(Item *a, Item *b)
Definition: item_func.h:1161
void result_precision() override
Set precision of results for additive operations (+ and -)
Definition: item_func.cc:2184
bool check_partition_func_processor(uchar *) override
Check if a partition function is allowed.
Definition: item_func.h:1166
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_func.h:1167
Definition: item_func.h:1848
const char * func_name() const override
Definition: item_func.h:1854
longlong val_int() override
Definition: item_func.cc:4331
String value
Definition: item_func.h:1849
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:1855
Item_func_ascii(const POS &pos, Item *a)
Definition: item_func.h:1852
Definition: item_func.h:1377
double val_real() override
Definition: item_func.cc:2908
enum Functype functype() const override
Definition: item_func.h:1382
const char * func_name() const override
Definition: item_func.h:1381
Item_func_asin(const POS &pos, Item *a)
Definition: item_func.h:1379
Definition: item_func.h:1385
enum Functype functype() const override
Definition: item_func.h:1391
double val_real() override
Definition: item_func.cc:2916
Item_func_atan(const POS &pos, Item *a, Item *b)
Definition: item_func.h:1388
Item_func_atan(const POS &pos, Item *a)
Definition: item_func.h:1387
const char * func_name() const override
Definition: item_func.h:1390
Definition: item_func.h:2111
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item_func.cc:5834
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2126
table_map get_initial_pseudo_tables() const override
Ensure that "benchmark()" is never optimized away.
Definition: item_func.h:2119
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_func.cc:5775
bool check_function_as_value_generator(uchar *checker_args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item_func.h:2135
Item_int_func super
Definition: item_func.h:2112
Item_func_benchmark(const POS &pos, Item *count_expr, Item *expr)
Definition: item_func.h:2115
longlong val_int() override
Definition: item_func.cc:5784
const char * func_name() const override
Definition: item_func.h:2125
Definition: item_func.h:1983
longlong int_op() override
Performs the operation on integers to produce a result of type INT_RESULT.
Definition: item_func.h:1990
const char * func_name() const override
Definition: item_func.h:1987
Item_func_bit_and(const POS &pos, Item *a, Item *b)
Definition: item_func.h:1985
String * str_op(String *str) override
Performs the operation on binary strings to produce a result of type STRING_RESULT.
Definition: item_func.h:1991
Definition: item_func.h:2009
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2014
longlong val_int() override
Definition: item_func.cc:4471
const char * func_name() const override
Definition: item_func.h:2013
Item_func_bit_count(const POS &pos, Item *a)
Definition: item_func.h:2011
Definition: item_func.h:1758
const char * func_name() const override
Definition: item_func.h:1765
longlong val_int() override
Definition: item_func.h:1761
Item_func_bit_length(const POS &pos, Item *a)
Definition: item_func.h:1760
Definition: item_func.h:2062
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item_func.h:2071
Item_func_bit_neg(const POS &pos, Item *a)
Definition: item_func.h:2069
longlong int_op() override
Performs the operation on integers to produce a result of type INT_RESULT.
Definition: item_func.cc:3149
bool binary_result_requires_binary_second_arg() const override
Definition: item_func.h:2064
String * str_op(String *str) override
Performs the operation on binary strings to produce a result of type STRING_RESULT.
Definition: item_func.cc:3157
const char * func_name() const override
Definition: item_func.h:2070
Definition: item_func.h:1970
const char * func_name() const override
Definition: item_func.h:1974
String * str_op(String *str) override
Performs the operation on binary strings to produce a result of type STRING_RESULT.
Definition: item_func.h:1978
longlong int_op() override
Performs the operation on integers to produce a result of type INT_RESULT.
Definition: item_func.h:1977
Item_func_bit_or(const POS &pos, Item *a, Item *b)
Definition: item_func.h:1972
Base class for all the bit functions that work with two binary arguments: '&', '|',...
Definition: item_func.h:1955
String * eval_str_op(String *, Char_func char_func, Int_func int_func)
Template function that evaluates the bitwise operation over binary arguments.
Definition: item_func.cc:3215
bool binary_result_requires_binary_second_arg() const override
Definition: item_func.h:1957
longlong eval_int_op(Int_func int_func)
Template function used to evaluate the bitwise operation over int arguments.
Definition: item_func.cc:3189
Item_func_bit_two_param(const POS &pos, Item *a, Item *b)
Definition: item_func.h:1966
Definition: item_func.h:1996
const char * func_name() const override
Definition: item_func.h:2000
Item_func_bit_xor(const POS &pos, Item *a, Item *b)
Definition: item_func.h:1998
longlong int_op() override
Performs the operation on integers to produce a result of type INT_RESULT.
Definition: item_func.h:2003
String * str_op(String *str) override
Performs the operation on binary strings to produce a result of type STRING_RESULT.
Definition: item_func.h:2004
Definition: item_func.h:1893
virtual longlong int_op()=0
Performs the operation on integers to produce a result of type INT_RESULT.
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item_func.h:1917
String tmp_value
Buffer storing the determined value.
Definition: item_func.h:1898
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.cc:2962
virtual bool binary_result_requires_binary_second_arg() const =0
my_decimal * val_decimal(my_decimal *decimal_value) override
Definition: item_func.cc:3022
double val_real() override
Definition: item_func.cc:3006
String * val_str(String *str) override
Definition: item_func.cc:3030
Item_result hybrid_type
Stores the Item's result type. Can only be INT_RESULT or STRING_RESULT.
Definition: item_func.h:1896
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item_func.h:1921
longlong val_int() override
Definition: item_func.cc:2990
Item_func_bit(const POS &pos, Item *a)
Definition: item_func.h:1907
virtual String * str_op(String *)=0
Performs the operation on binary strings to produce a result of type STRING_RESULT.
enum Item_result result_type() const override
Definition: item_func.h:1910
Item_func_bit(const POS &pos, Item *a, Item *b)
Definition: item_func.h:1906
bool get_time(MYSQL_TIME *ltime) override
Definition: item_func.h:1927
Definition: item_func.h:2564
const char * func_name() const override
Definition: item_func.h:2569
longlong val_int() override
INFORMATION_SCHEMA picks metadata from DD using system views.
Definition: item_func.cc:9084
Item_func_can_access_column(const POS &pos, Item *a, Item *b, Item *c)
Definition: item_func.h:2566
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2570
Internal functions used by INFORMATION_SCHEMA implementation to check if user have access to given da...
Definition: item_func.h:2466
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2472
Item_func_can_access_database(const POS &pos, Item *a)
Definition: item_func.h:2468
longlong val_int() override
INFORMATION_SCHEMA picks metadata from DD using system views.
Definition: item_func.cc:8676
const char * func_name() const override
Definition: item_func.h:2471
Definition: item_func.h:2528
Item_func_can_access_event(const POS &pos, Item *a)
Definition: item_func.h:2530
const char * func_name() const override
Definition: item_func.h:2532
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2533
longlong val_int() override
INFORMATION_SCHEMA picks metadata from DD using system views.
Definition: item_func.cc:8969
Definition: item_func.h:2539
const char * func_name() const override
Definition: item_func.h:2544
Item_func_can_access_resource_group(const POS &pos, Item *a)
Definition: item_func.h:2541
longlong val_int() override
INFORMATION_SCHEMA picks metadata from DD using system views.
Definition: item_func.cc:9021
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2545
Definition: item_func.h:2515
Item_func_can_access_routine(const POS &pos, PT_item_list *list)
Definition: item_func.h:2517
const char * func_name() const override
Definition: item_func.h:2520
longlong val_int() override
INFORMATION_SCHEMA picks metadata from DD using system views.
Definition: item_func.cc:8886
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2521
Definition: item_func.h:2478
const char * func_name() const override
Definition: item_func.h:2483
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2484
Item_func_can_access_table(const POS &pos, Item *a, Item *b)
Definition: item_func.h:2480
longlong val_int() override
INFORMATION_SCHEMA picks metadata from new DD using system views.
Definition: item_func.cc:8800
Definition: item_func.h:2502
Item_func_can_access_trigger(const POS &pos, Item *a, Item *b)
Definition: item_func.h:2504
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2508
longlong val_int() override
INFORMATION_SCHEMA picks metadata from new DD using system views.
Definition: item_func.cc:8864
const char * func_name() const override
Definition: item_func.h:2507
Definition: item_func.h:2490
const char * func_name() const override
Definition: item_func.h:2495
Item_func_can_access_user(const POS &pos, Item *a, Item *b)
Definition: item_func.h:2492
longlong val_int() override
INFORMATION_SCHEMA picks metadata from new DD using system views.
Definition: item_func.cc:8823
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2496
Definition: item_func.h:2552
longlong val_int() override
INFORMATION_SCHEMA picks metadata from DD using system views.
Definition: item_func.cc:9159
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2558
Item_func_can_access_view(const POS &pos, Item *a, Item *b, Item *c, Item *d)
Definition: item_func.h:2554
const char * func_name() const override
Definition: item_func.h:2557
Definition: item_func.h:1433
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_func.h:1442
bool check_partition_func_processor(uchar *) override
Check if a partition function is allowed.
Definition: item_func.h:1441
const char * func_name() const override
Definition: item_func.h:1437
enum Functype functype() const override
Definition: item_func.h:1443
double real_op() override
Performs the operation that this functions implements when the result type is REAL.
Definition: item_func.cc:3376
my_decimal * decimal_op(my_decimal *) override
Performs the operation that this functions implements when the result type is DECIMAL.
Definition: item_func.cc:3382
Item_func_ceiling(const POS &pos, Item *a)
Definition: item_func.h:1436
longlong int_op() override
Performs the operation that this functions implements when the result type is INT.
Definition: item_func.cc:3355
Item_func_ceiling(Item *a)
Definition: item_func.h:1435
Definition: item_func.h:1768
Item_func_char_length(Item *a)
Definition: item_func.h:1772
Item_func_char_length(const POS &pos, Item *a)
Definition: item_func.h:1773
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:1776
longlong val_int() override
Definition: item_func.cc:4186
const char * func_name() const override
Definition: item_func.h:1775
String value
Definition: item_func.h:1769
Definition: item_func.h:1782
const char * func_name() const override
Definition: item_func.h:1788
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:1789
longlong val_int() override
Definition: item_func.cc:4197
Item_func_coercibility(const POS &pos, Item *a)
Definition: item_func.h:1784
Definition: item_func.h:1043
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.cc:1488
table_map get_initial_pseudo_tables() const override
Returns the pseudo tables depended upon in order to evaluate this function expression.
Definition: item_func.h:1049
Item_int_func super
Definition: item_func.h:1044
const char * func_name() const override
Definition: item_func.h:1053
bool check_function_as_value_generator(uchar *checker_args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item_func.h:1057
Item_func_connection_id(const POS &pos)
Definition: item_func.h:1047
longlong val_int() override
Definition: item_func.cc:1500
bool fix_fields(THD *thd, Item **ref) override
Definition: item_func.cc:1494
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_func.cc:1481
Definition: item_func.h:1394
enum Functype functype() const override
Definition: item_func.h:1399
const char * func_name() const override
Definition: item_func.h:1398
double val_real() override
Definition: item_func.cc:2928
Item_func_cos(const POS &pos, Item *a)
Definition: item_func.h:1396
Definition: item_func.h:1418
const char * func_name() const override
Definition: item_func.h:1422
enum Functype functype() const override
Definition: item_func.h:1423
double val_real() override
Definition: item_func.cc:2949
Item_func_cot(const POS &pos, Item *a)
Definition: item_func.h:1420
Definition: item_func.h:1545
Item_func_degrees(const POS &pos, Item *a)
Definition: item_func.h:1547
const char * func_name() const override
Definition: item_func.h:1549
enum Functype functype() const override
Definition: item_func.h:1550
Definition: item_func.h:1218
Item_func_div_base(const POS &pos, Item *a, Item *b)
Definition: item_func.h:1220
Item_func_div_base(Item *a, Item *b)
Definition: item_func.h:1222
uint m_prec_increment
Definition: item_func.h:1229
my_decimal * decimal_op(my_decimal *) override
Performs the operation that this functions implements when the result type is DECIMAL.
Definition: item_func.cc:2440
double real_op() override
Performs the operation that this functions implements when the result type is REAL.
Definition: item_func.cc:2425
longlong int_op() override
Performs the operation that this functions implements when the result type is INT.
Definition: item_func.cc:2530
enum Functype functype() const override
Definition: item_func.h:1226
Definition: item_func.h:1241
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.cc:2592
void set_numeric_type() override
Check arguments to determine the data type for a numeric function of two arguments.
Definition: item_func.cc:2603
bool check_partition_func_processor(uchar *) override
Check if a partition function is allowed.
Definition: item_func.h:1253
Item_func_div_int(const POS &pos, Item *a, Item *b)
Definition: item_func.h:1244
enum_field_types default_data_type() const override
Get the default data (output) type for the specific item.
Definition: item_func.h:1247
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_func.h:1254
void result_precision() override
Definition: item_func.cc:2476
const char * func_name() const override
Definition: item_func.h:1246
Item_func_div_int(Item *a, Item *b)
Definition: item_func.h:1243
Definition: item_func.h:1232
void result_precision() override
Definition: item_func.cc:2459
Item_func_div(const POS &pos, Item *a, Item *b)
Definition: item_func.h:1234
const char * func_name() const override
Definition: item_func.h:1236
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.cc:2496
Definition: item_func.h:1313
double val_real() override
Definition: item_func.cc:2871
enum Functype functype() const override
Definition: item_func.h:1318
const char * func_name() const override
Definition: item_func.h:1317
Item_func_exp(const POS &pos, Item *a)
Definition: item_func.h:1315
Definition: item_func.h:1836
String value
Definition: item_func.h:1837
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.cc:4316
const char * func_name() const override
Definition: item_func.h:1844
String tmp
Definition: item_func.h:1837
Item_func_field(const POS &pos, PT_item_list *opt_list)
Definition: item_func.h:1841
longlong val_int() override
Definition: item_func.cc:4273
Item_result cmp_type
Definition: item_func.h:1838
Definition: item_func.h:1870
const CHARSET_INFO * compare_collation() const override
Definition: item_func.h:1886
const char * func_name() const override
Definition: item_func.h:1884
Item_func_find_in_set(const POS &pos, Item *a, Item *b)
Definition: item_func.h:1881
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.cc:4365
longlong val_int() override
Definition: item_func.cc:4393
String value2
Definition: item_func.h:1871
DTCollation cmp_collation
Definition: item_func.h:1878
uint m_enum_value
Definition: item_func.h:1877
String value
Definition: item_func.h:1871
Definition: item_func.h:1446
my_decimal * decimal_op(my_decimal *) override
Performs the operation that this functions implements when the result type is DECIMAL.
Definition: item_func.cc:3418
const char * func_name() const override
Definition: item_func.h:1450
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_func.h:1455
double real_op() override
Performs the operation that this functions implements when the result type is REAL.
Definition: item_func.cc:3412
bool check_partition_func_processor(uchar *) override
Check if a partition function is allowed.
Definition: item_func.h:1454
Item_func_floor(const POS &pos, Item *a)
Definition: item_func.h:1449
Item_func_floor(Item *a)
Definition: item_func.h:1448
longlong int_op() override
Performs the operation that this functions implements when the result type is INT.
Definition: item_func.cc:3391
enum Functype functype() const override
Definition: item_func.h:1456
Definition: item_func.h:3918
Item_func_found_rows(const POS &pos)
Definition: item_func.h:3922
longlong val_int() override
Definition: item_func.cc:8437
bool check_function_as_value_generator(uchar *checker_args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item_func.h:3931
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_func.cc:8426
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:3927
Item_int_func super
Definition: item_func.h:3919
const char * func_name() const override
Definition: item_func.h:3926
Definition: item_func.h:2774
const char * func_name() const override
Definition: item_func.h:2784
longlong val_int() override
INFORMATION_SCHEMA picks metadata from DD using system views.
Definition: item_func.cc:9996
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2779
Item_func_get_dd_index_sub_part_length(const POS &pos, PT_item_list *list)
Definition: item_func.h:2776
Definition: item_func.h:2337
bool check_function_as_value_generator(uchar *checker_args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item_func.h:2357
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2349
Item_int_func super
Definition: item_func.h:2338
Item_func_get_lock(const POS &pos, Item *a, Item *b)
Definition: item_func.h:2343
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_func.cc:5451
const char * func_name() const override
Definition: item_func.h:2348
String value
Definition: item_func.h:2340
bool is_non_const_over_literals(uchar *) override
Definition: item_func.h:2356
longlong val_int() override
Get a user level lock.
Definition: item_func.cc:5476
Definition: item_func.h:3414
const enum_var_type var_scope
Definition: item_func.h:3415
table_map get_initial_pseudo_tables() const override
Returns the pseudo tables depended upon in order to evaluate this function expression.
Definition: item_func.h:3433
longlong get_sys_var_safe(THD *thd, sys_var *var)
Definition: item_func.cc:7204
longlong cached_llval
Definition: item_func.h:3416
enum Functype functype() const override
Definition: item_func.h:3432
Item_func_get_system_var(const System_variable_tracker &, enum_var_type scope)
Definition: item_func.cc:7104
double val_real() override
Definition: item_func.cc:7395
String cached_strval
Definition: item_func.h:3418
const char * func_name() const override
Definition: item_func.h:3451
longlong val_int() override
Definition: item_func.cc:7219
bool eq(const Item *item, bool binary_cmp) const override
Definition: item_func.cc:7482
const System_variable_tracker var_tracker
Definition: item_func.h:3422
query_id_t used_query_id
Definition: item_func.h:3420
bool is_valid_for_pushdown(uchar *arg) override
Check if all the columns present in this expression are from the derived table.
Definition: item_func.h:3453
bool cached_null_value
Definition: item_func.h:3419
uchar cache_present
Definition: item_func.h:3421
double cached_dval
Definition: item_func.h:3417
enum Item_result result_type() const override
Definition: item_func.h:3440
bool is_non_const_over_literals(uchar *) override
Definition: item_func.h:3439
String * val_str(String *) override
Definition: item_func.cc:7302
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.cc:7110
my_decimal * val_decimal(my_decimal *dec_buf) override
Definition: item_func.h:3447
void cleanup() override
Called for every Item after use (preparation and execution).
Definition: item_func.cc:7494
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item_func.cc:7151
Definition: item_func.h:3292
Name_string name
Definition: item_func.h:3297
enum Item_result result_type() const override
Definition: item_func.cc:7005
double val_real() override
Definition: item_func.cc:6659
const CHARSET_INFO * charset_for_protocol() override
Definition: item_func.cc:6693
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.cc:6857
Item_func_get_user_var(Name_string a)
Definition: item_func.h:3299
String * val_str(String *str) override
Definition: item_func.cc:6631
bool propagate_type(THD *thd, const Type_properties &type) override
Default implementation for all functions: Propagate base_item's type into all arguments.
Definition: item_func.cc:6916
enum Functype functype() const override
Definition: item_func.h:3304
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item_func.cc:7009
Settable_routine_parameter * get_settable_routine_parameter() override
Definition: item_func.h:3329
user_var_entry * var_entry
Definition: item_func.h:3293
bool eq(const Item *item, bool binary_cmp) const override
Definition: item_func.cc:7016
void cleanup() override
Called for every Item after use (preparation and execution).
Definition: item_func.cc:6996
const char * func_name() const override
Definition: item_func.h:3321
bool set_value(THD *thd, sp_rcontext *ctx, Item **it) override
Definition: item_func.cc:7028
longlong val_int() override
Definition: item_func.cc:6679
Item_result m_cached_result_type
Definition: item_func.h:3294
my_decimal * val_decimal(my_decimal *) override
Definition: item_func.cc:6669
void update_used_tables() override
Updates used tables, not null tables information and accumulates properties up the item tree,...
Definition: item_func.h:3313
Item_func_get_user_var(const POS &pos, Name_string a)
Definition: item_func.h:3301
bool is_non_const_over_literals(uchar *) override
Definition: item_func.h:3322
Definition: item_func.h:1813
Item_func_instr(const POS &pos, Item *a, Item *b)
Definition: item_func.h:1815
const char * func_name() const override
Definition: item_func.h:1818
Definition: item_func.h:1426
bool resolve_type_inner(THD *thd) override
Resolve type of function after all arguments have had their data types resolved.
Definition: item_func.cc:3293
Item_func_int_val(const POS &pos, Item *a)
Definition: item_func.h:1429
Item_func_int_val(Item *a)
Definition: item_func.h:1428
Definition: item_func.h:2683
longlong val_int() override
Definition: item_func.cc:9509
Item_func_internal_auto_increment(const POS &pos, PT_item_list *list)
Definition: item_func.h:2685
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2690
const char * func_name() const override
Definition: item_func.h:2689
enum Functype functype() const override
Definition: item_func.h:2687
Definition: item_func.h:2608
const char * func_name() const override
Definition: item_func.h:2614
Item_func_internal_avg_row_length(const POS &pos, PT_item_list *list)
Definition: item_func.h:2610
longlong val_int() override
Definition: item_func.cc:9460
enum Functype functype() const override
Definition: item_func.h:2612
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2615
Definition: item_func.h:2698
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2705
const char * func_name() const override
Definition: item_func.h:2704
Item_func_internal_checksum(const POS &pos, PT_item_list *list)
Definition: item_func.h:2700
longlong val_int() override
Definition: item_func.cc:9521
enum Functype functype() const override
Definition: item_func.h:2702
Definition: item_func.h:2668
enum Functype functype() const override
Definition: item_func.h:2672
const char * func_name() const override
Definition: item_func.h:2674
Item_func_internal_data_free(const POS &pos, PT_item_list *list)
Definition: item_func.h:2670
longlong val_int() override
Definition: item_func.cc:9497
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2675
Definition: item_func.h:2623
longlong val_int() override
Definition: item_func.cc:9470
const char * func_name() const override
Definition: item_func.h:2629
Item_func_internal_data_length(const POS &pos, PT_item_list *list)
Definition: item_func.h:2625
enum Functype functype() const override
Definition: item_func.h:2627
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2630
Definition: item_func.h:2742
longlong val_int() override
Definition: item_func.cc:9863
Item_func_internal_dd_char_length(const POS &pos, Item *a, Item *b, Item *c, Item *d)
Definition: item_func.h:2744
const char * func_name() const override
Definition: item_func.h:2748
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2749
Definition: item_func.h:2757
Item_func_internal_get_view_warning_or_error(const POS &pos, PT_item_list *list)
Definition: item_func.h:2759
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2766
longlong val_int() override
Definition: item_func.cc:9936
const char * func_name() const override
Definition: item_func.h:2763
Definition: item_func.h:2725
longlong val_int() override
INFORMATION_SCHEMA picks metadata from DD using system views.
Definition: item_func.cc:9596
Item_func_internal_index_column_cardinality(const POS &pos, PT_item_list *list)
Definition: item_func.h:2727
enum Functype functype() const override
Definition: item_func.h:2730
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2735
const char * func_name() const override
Definition: item_func.h:2732
Definition: item_func.h:2653
Item_func_internal_index_length(const POS &pos, PT_item_list *list)
Definition: item_func.h:2655
longlong val_int() override
Definition: item_func.cc:9488
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2660
enum Functype functype() const override
Definition: item_func.h:2657
const char * func_name() const override
Definition: item_func.h:2659
Internal function used by INFORMATION_SCHEMA implementation to check if a role is enabled.
Definition: item_func.h:4019
longlong val_int() override
Internal function used by INFORMATION_SCHEMA implementation to check if a role enabled.
Definition: item_func.cc:10116
enum Functype functype() const override
Definition: item_func.h:4025
Item_func_internal_is_enabled_role(const POS &pos, Item *a, Item *b)
Definition: item_func.h:4021
const char * func_name() const override
Definition: item_func.h:4024
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:4026
Internal function used by INFORMATION_SCHEMA implementation to check if a role is a mandatory role.
Definition: item_func.h:3984
longlong val_int() override
Internal function used by INFORMATION_SCHEMA implementation to check if a role is a mandatory role.
Definition: item_func.cc:10053
Item_func_internal_is_mandatory_role(const POS &pos, Item *a, Item *b)
Definition: item_func.h:3986
const char * func_name() const override
Definition: item_func.h:3989
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:3993
enum Functype functype() const override
Definition: item_func.h:3992
Definition: item_func.h:2712
Item_func_internal_keys_disabled(const POS &pos, Item *a)
Definition: item_func.h:2714
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2718
longlong val_int() override
INFORMATION_SCHEMA picks metadata from DD using system views.
Definition: item_func.cc:9548
const char * func_name() const override
Definition: item_func.h:2717
Definition: item_func.h:2638
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2645
const char * func_name() const override
Definition: item_func.h:2644
Item_func_internal_max_data_length(const POS &pos, PT_item_list *list)
Definition: item_func.h:2640
enum Functype functype() const override
Definition: item_func.h:2642
longlong val_int() override
Definition: item_func.cc:9479
Definition: item_func.h:2593
enum Functype functype() const override
Definition: item_func.h:2597
longlong val_int() override
Definition: item_func.cc:9448
Item_func_internal_table_rows(const POS &pos, PT_item_list *list)
Definition: item_func.h:2595
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2600
const char * func_name() const override
Definition: item_func.h:2599
Definition: item_func.h:2925
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2938
Item_func_internal_tablespace_autoextend_size(const POS &pos, Item *a, Item *b, Item *c, Item *d)
Definition: item_func.h:2927
longlong val_int() override
Definition: item_func.cc:9806
enum Functype functype() const override
Definition: item_func.h:2931
const char * func_name() const override
Definition: item_func.h:2934
Definition: item_func.h:2965
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2978
Item_func_internal_tablespace_data_free(const POS &pos, Item *a, Item *b, Item *c, Item *d)
Definition: item_func.h:2967
longlong val_int() override
Definition: item_func.cc:9839
const char * func_name() const override
Definition: item_func.h:2974
enum Functype functype() const override
Definition: item_func.h:2971
Definition: item_func.h:2865
Item_func_internal_tablespace_extent_size(const POS &pos, Item *a, Item *b, Item *c, Item *d)
Definition: item_func.h:2867
enum Functype functype() const override
Definition: item_func.h:2871
longlong val_int() override
Definition: item_func.cc:9759
const char * func_name() const override
Definition: item_func.h:2874
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2878
Definition: item_func.h:2825
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2838
enum Functype functype() const override
Definition: item_func.h:2831
const char * func_name() const override
Definition: item_func.h:2834
Item_func_internal_tablespace_free_extents(const POS &pos, Item *a, Item *b, Item *c, Item *d)
Definition: item_func.h:2827
longlong val_int() override
Definition: item_func.cc:9729
Definition: item_func.h:2789
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2797
enum Functype functype() const override
Definition: item_func.h:2794
Item_func_internal_tablespace_id(const POS &pos, Item *a, Item *b, Item *c, Item *d)
Definition: item_func.h:2791
longlong val_int() override
Definition: item_func.cc:9696
const char * func_name() const override
Definition: item_func.h:2796
Definition: item_func.h:2885
longlong val_int() override
Definition: item_func.cc:9774
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2898
const char * func_name() const override
Definition: item_func.h:2894
Item_func_internal_tablespace_initial_size(const POS &pos, Item *a, Item *b, Item *c, Item *d)
Definition: item_func.h:2887
enum Functype functype() const override
Definition: item_func.h:2891
Definition: item_func.h:2805
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2818
enum Functype functype() const override
Definition: item_func.h:2811
longlong val_int() override
Definition: item_func.cc:9711
Item_func_internal_tablespace_logfile_group_number(const POS &pos, Item *a, Item *b, Item *c, Item *d)
Definition: item_func.h:2807
const char * func_name() const override
Definition: item_func.h:2814
Definition: item_func.h:2905
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2918
Item_func_internal_tablespace_maximum_size(const POS &pos, Item *a, Item *b, Item *c, Item *d)
Definition: item_func.h:2907
const char * func_name() const override
Definition: item_func.h:2914
longlong val_int() override
Definition: item_func.cc:9789
enum Functype functype() const override
Definition: item_func.h:2911
Definition: item_func.h:2845
longlong val_int() override
Definition: item_func.cc:9744
enum Functype functype() const override
Definition: item_func.h:2851
Item_func_internal_tablespace_total_extents(const POS &pos, Item *a, Item *b, Item *c, Item *d)
Definition: item_func.h:2847
const char * func_name() const override
Definition: item_func.h:2854
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2858
Definition: item_func.h:2945
Item_func_internal_tablespace_version(const POS &pos, Item *a, Item *b, Item *c, Item *d)
Definition: item_func.h:2947
longlong val_int() override
Definition: item_func.cc:9822
const char * func_name() const override
Definition: item_func.h:2954
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2958
enum Functype functype() const override
Definition: item_func.h:2951
Definition: item_func.h:3999
const char * func_name() const override
Definition: item_func.h:4004
longlong val_int() override
Definition: item_func.cc:10087
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:4008
Item_func_internal_use_terminology_previous(const POS &pos)
Definition: item_func.h:4001
enum Functype functype() const override
Definition: item_func.h:4007
Definition: item_func.h:3756
longlong val_int() override
Check if user level lock is free.
Definition: item_func.cc:5679
Item_func_is_free_lock(const POS &pos, Item *a)
Definition: item_func.h:3762
const char * func_name() const override
Definition: item_func.h:3766
Item_int_func super
Definition: item_func.h:3757
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:3767
bool is_non_const_over_literals(uchar *) override
Definition: item_func.h:3773
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_func.cc:5655
bool check_function_as_value_generator(uchar *checker_args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item_func.h:3774
String value
Definition: item_func.h:3759
Definition: item_func.h:3783
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:3794
Item_func_is_used_lock(const POS &pos, Item *a)
Definition: item_func.h:3789
bool check_function_as_value_generator(uchar *checker_args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item_func.h:3801
Item_int_func super
Definition: item_func.h:3784
String value
Definition: item_func.h:3786
const char * func_name() const override
Definition: item_func.h:3793
longlong val_int() override
Check if user level lock is used and return connection id of owner.
Definition: item_func.cc:5722
bool is_non_const_over_literals(uchar *) override
Definition: item_func.h:3800
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_func.cc:5701
Definition: item_func.h:2576
Item_func_is_visible_dd_object(const POS &pos, Item *a, Item *b)
Definition: item_func.h:2580
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2586
Item_func_is_visible_dd_object(const POS &pos, Item *a, Item *b, Item *c)
Definition: item_func.h:2582
const char * func_name() const override
Definition: item_func.h:2585
longlong val_int() override
Skip hidden tables, columns, indexes and index elements.
Definition: item_func.cc:9292
Item_func_is_visible_dd_object(const POS &pos, Item *a)
Definition: item_func.h:2578
Definition: item_func.h:2081
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2097
const char * func_name() const override
Definition: item_func.h:2091
Item_func_last_insert_id(const POS &pos, Item *a)
Definition: item_func.h:2087
Item_func_last_insert_id()
Definition: item_func.h:2085
table_map get_initial_pseudo_tables() const override
Returns the pseudo tables depended upon in order to evaluate this function expression.
Definition: item_func.h:2093
longlong val_int() override
Definition: item_func.cc:5754
bool check_function_as_value_generator(uchar *checker_args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item_func.h:2102
Item_int_func super
Definition: item_func.h:2082
Item_func_last_insert_id(const POS &pos)
Definition: item_func.h:2086
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_func.cc:5746
Definition: item_func.h:1744
Item_func_length(const POS &pos, Item *a)
Definition: item_func.h:1748
String value
Definition: item_func.h:1745
const char * func_name() const override
Definition: item_func.h:1750
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:1751
longlong val_int() override
Definition: item_func.cc:4175
Definition: item_func.h:1321
double val_real() override
Gateway to natural LOG function.
Definition: item_func.cc:2811
enum Functype functype() const override
Definition: item_func.h:1326
const char * func_name() const override
Definition: item_func.h:1325
Item_func_ln(const POS &pos, Item *a)
Definition: item_func.h:1323
Definition: item_func.h:1796
String value1
Definition: item_func.h:1797
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item_func.cc:4252
longlong val_int() override
Definition: item_func.cc:4212
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.cc:4203
Item_func_locate(Item *a, Item *b)
Definition: item_func.h:1800
Item_func_locate(const POS &pos, Item *a, Item *b, Item *c)
Definition: item_func.h:1803
const char * func_name() const override
Definition: item_func.h:1806
Item_func_locate(const POS &pos, Item *a, Item *b)
Definition: item_func.h:1801
String value2
Definition: item_func.h:1797
Definition: item_func.h:1345
double val_real() override
Definition: item_func.cc:2860
enum Functype functype() const override
Definition: item_func.h:1350
const char * func_name() const override
Definition: item_func.h:1349
Item_func_log10(const POS &pos, Item *a)
Definition: item_func.h:1347
Definition: item_func.h:1338
double val_real() override
Definition: item_func.cc:2848
const char * func_name() const override
Definition: item_func.h:1342
Item_func_log2(const POS &pos, Item *a)
Definition: item_func.h:1340
Definition: item_func.h:1329
Item_func_log(const POS &pos, Item *a)
Definition: item_func.h:1331
double val_real() override
Extended but so slower LOG function.
Definition: item_func.cc:2828
Item_func_log(const POS &pos, Item *a, Item *b)
Definition: item_func.h:1332
const char * func_name() const override
Definition: item_func.h:1334
enum Functype functype() const override
Definition: item_func.h:1335
Definition: item_func.h:3465
uint flags
Definition: item_func.h:3473
FT_INFO * ft_handler
Definition: item_func.h:3479
DTCollation cmp_collation
Definition: item_func.h:3478
void update_used_tables() override
Updates used tables, not null tables information and accumulates properties up the item tree,...
Definition: item_func.cc:7756
bool fix_index(const THD *thd)
Definition: item_func.cc:7763
Item * key_item() const override
Definition: item_func.h:3528
uint key
Definition: item_func.h:3473
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item_func.cc:7895
bool check_function_as_value_generator(uchar *checker_args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item_func.h:3545
bool allows_search_on_non_indexed_columns(const TABLE *tr)
Check whether storage engine for given table, allows FTS Boolean search on non-indexed columns.
Definition: item_func.h:3724
void set_master(Item_func_match *item)
Set master MATCH function and adjust used_in_where_only value.
Definition: item_func.h:3622
longlong val_int() override
Definition: item_func.h:3535
Item_func_match * master
Master item means that if identical items are present in the statement, they use the same FT handler.
Definition: item_func.h:3487
Ft_hints * hints
Fulltext index hints, initialized for master MATCH function only.
Definition: item_func.h:3692
const char * func_name() const override
Definition: item_func.h:3530
bool docid_in_result()
Check whether FT result contains the document ID.
Definition: item_func.h:3592
Item * concat_ws
Definition: item_func.h:3488
bool can_skip_ranking()
Check if ranking is not needed.
Definition: item_func.h:3659
void cleanup() override
Called for every Item after use (preparation and execution).
Definition: item_func.h:3517
void set_hints_op(enum ft_operation type, double value_arg)
Set comparison operation type and and value for master MATCH function.
Definition: item_func.h:3643
Table_ref * table_ref
Definition: item_func.h:3480
bool ordered_result()
Check whether FT result is ordered on rank.
Definition: item_func.h:3574
bool init_search(THD *thd)
Initialize searching within full-text index.
Definition: item_func.cc:7528
String value
Definition: item_func.h:3489
enum Functype functype() const override
Definition: item_func.h:3529
bool eq(const Item *, bool binary_cmp) const override
Definition: item_func.cc:7846
void set_hints(JOIN *join, uint ft_flag, ha_rows ft_limit, bool no_cond)
Set FT hints.
Definition: item_func.cc:7927
Item_func_match(const POS &pos, PT_item_list *a, Item *against_arg, uint b)
Constructor for Item_func_match class.
Definition: item_func.h:3500
Item * against
Definition: item_func.h:3472
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 the filter contribution that is relevant for table 'filter_for_table' for this item.
Definition: item_func.cc:7604
bool fix_fields(THD *thd, Item **ref) override
Definition: item_func.cc:7633
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_func.cc:7500
bool used_in_where_only
true if MATCH function is used in WHERE condition only.
Definition: item_func.h:3705
String search_value
Definition: item_func.h:3490
bool is_simple_expression()
Check if this MATCH function is a simple expression in WHERE condition.
Definition: item_func.h:3683
Ft_hints * get_hints()
Returns pointer to Ft_hints object belonging to master MATCH function.
Definition: item_func.h:3632
void add_json_info(Json_object *obj) override
Add all the node-specific json fields.
Definition: item_func.cc:7908
bool score_from_index_scan
True if we are doing a full-text index scan with this MATCH function as a predicate,...
Definition: item_func.h:3477
void set_simple_expression(bool val)
Set flag that the function is a simple expression.
Definition: item_func.h:3672
double val_real() override
Definition: item_func.cc:7863
bool simple_expression
Flag is true when MATCH function is used as a simple expression in WHERE condition,...
Definition: item_func.h:3698
Item_func_match * get_master()
Returns master MATCH function.
Definition: item_func.h:3612
Item_real_func super
Definition: item_func.h:3466
ulonglong get_count()
Get number of matching rows from FT handler.
Definition: item_func.h:3560
Definition: item_func.h:1646
Item_func_max(const POS &pos, PT_item_list *opt_list)
Definition: item_func.h:1648
const char * func_name() const override
Definition: item_func.h:1650
enum Functype functype() const override
Definition: item_func.h:1651
Definition: item_func.h:1560
bool compare_as_dates() const
Returns true if arguments to this function should be compared as dates.
Definition: item_func.cc:3865
longlong int_op() override
Performs the operation that this functions implements when the result type is INT.
Definition: item_func.cc:4002
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.cc:3753
TYPELIB * get_typelib() const override
Get the typelib information for an item of type set or enum.
Definition: item_func.cc:3763
my_decimal * val_decimal(my_decimal *) override
Definition: item_func.cc:4066
bool date_op(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Performs the operation that this functions implements when the result type is MYSQL_TYPE_DATE or MYSQ...
Definition: item_func.cc:3959
String * str_op(String *) override
Performs the operation that this functions implements when the result type is a string type.
Definition: item_func.cc:3902
uint8 fsp_for_string
Fractional seconds precision to use when converting a time or timestamp expression into a string.
Definition: item_func.h:1616
double val_real() override
Definition: item_func.cc:4052
longlong val_int() override
Definition: item_func.cc:4059
bool resolve_type_inner(THD *thd) override
Resolve type of function after all arguments have had their data types resolved.
Definition: item_func.cc:3797
Item_func_min_max(const POS &pos, PT_item_list *opt_list, bool is_least_func)
Definition: item_func.h:1562
bool has_temporal_arg() const
Returns true if at least one of the arguments was of temporal type.
Definition: item_func.h:1597
String m_string_buf
Definition: item_func.h:1602
double real_op() override
Performs the operation that this functions implements when the result type is REAL.
Definition: item_func.cc:3983
bool cmp_datetimes(longlong *value)
Compare arguments as datetime values.
Definition: item_func.cc:3870
Item * temporal_item
Definition: item_func.h:1610
enum Item_result result_type() const override
Definition: item_func.h:1582
bool cmp_times(longlong *value)
Compare arguments as time values.
Definition: item_func.cc:3891
const bool m_is_least_func
True if LEAST function, false if GREATEST.
Definition: item_func.h:1601
enum Item_result cast_to_int_type() const override
Make CAST(LEAST_OR_GREATEST(datetime_expr, varchar_expr)) return a number in format YYMMDDhhmmss.
Definition: item_func.h:1589
bool time_op(MYSQL_TIME *ltime) override
Definition: item_func.cc:3968
my_decimal * decimal_op(my_decimal *) override
Performs the operation that this functions implements when the result type is DECIMAL.
Definition: item_func.cc:4027
enum_field_types default_data_type() const override
Get the default data (output) type for the specific item.
Definition: item_func.h:1576
void set_numeric_type() override
Definition: item_func.h:1581
Definition: item_func.h:1638
enum Functype functype() const override
Definition: item_func.h:1643
const char * func_name() const override
Definition: item_func.h:1642
Item_func_min(const POS &pos, PT_item_list *opt_list)
Definition: item_func.h:1640
Definition: item_func.h:1186
enum Functype functype() const override
Definition: item_func.h:1200
my_decimal * decimal_op(my_decimal *) override
See Item_func_plus::decimal_op for comments.
Definition: item_func.cc:2273
longlong int_op() override SUPPRESS_UBSAN
Performs the operation that this functions implements when the result type is INT.
Definition: item_func.cc:2222
bool resolve_type(THD *thd) override
The following function is here to allow the user to force subtraction of UNSIGNED BIGINT/DECIMAL to r...
Definition: item_func.cc:2204
Item_func_minus(const POS &pos, Item *a, Item *b)
Definition: item_func.h:1189
Item_func_minus(Item *a, Item *b)
Definition: item_func.h:1188
double real_op() override
Performs the operation that this functions implements when the result type is REAL.
Definition: item_func.cc:2211
const char * func_name() const override
Definition: item_func.h:1192
Definition: item_func.h:1257
bool check_partition_func_processor(uchar *) override
Check if a partition function is allowed.
Definition: item_func.h:1268
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_func.h:1269
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.cc:2697
void result_precision() override
Definition: item_func.cc:2681
Item_func_mod(const POS &pos, Item *a, Item *b)
Definition: item_func.h:1260
const char * func_name() const override
Definition: item_func.h:1265
enum Functype functype() const override
Definition: item_func.h:1270
double real_op() override
Performs the operation that this functions implements when the result type is REAL.
Definition: item_func.cc:2644
Item_func_mod(Item *a, Item *b)
Definition: item_func.h:1259
my_decimal * decimal_op(my_decimal *) override
Performs the operation that this functions implements when the result type is DECIMAL.
Definition: item_func.cc:2659
longlong int_op() override
Performs the operation that this functions implements when the result type is INT.
Definition: item_func.cc:2609
Definition: item_func.h:1203
const char * func_name() const override
Definition: item_func.h:1208
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_func.h:1214
void result_precision() override
Definition: item_func.cc:2411
double real_op() override
Performs the operation that this functions implements when the result type is REAL.
Definition: item_func.cc:2298
bool check_partition_func_processor(uchar *) override
Check if a partition function is allowed.
Definition: item_func.h:1213
my_decimal * decimal_op(my_decimal *) override
See Item_func_plus::decimal_op for comments.
Definition: item_func.cc:2396
longlong int_op() override
Performs the operation that this functions implements when the result type is INT.
Definition: item_func.cc:2310
Item_func_mul(Item *a, Item *b)
Definition: item_func.h:1205
enum Functype functype() const override
Definition: item_func.h:1215
Item_func_mul(const POS &pos, Item *a, Item *b)
Definition: item_func.h:1206
Definition: item_func.h:1273
Item_func_neg(const POS &pos, Item *a)
Definition: item_func.h:1276
const char * func_name() const override
Definition: item_func.h:1281
enum Functype functype() const override
Definition: item_func.h:1282
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.cc:2742
double real_op() override
Performs the operation that this functions implements when the result type is REAL.
Definition: item_func.cc:2704
longlong int_op() override
Performs the operation that this functions implements when the result type is INT.
Definition: item_func.cc:2710
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_func.h:1286
my_decimal * decimal_op(my_decimal *) override
Performs the operation that this functions implements when the result type is DECIMAL.
Definition: item_func.cc:2725
void fix_num_length_and_dec() override
Definition: item_func.cc:2735
Item_func_neg(Item *a)
Definition: item_func.h:1275
bool check_partition_func_processor(uchar *) override
Check if a partition function is allowed.
Definition: item_func.h:1285
Definition: item_func.h:929
Item_func_num1(Item *a, Item *b)
Definition: item_func.h:934
Item_func_num1(const POS &pos, Item *a)
Definition: item_func.h:932
void fix_num_length_and_dec() override
Definition: item_func.cc:1583
String * str_op(String *) override
Performs the operation that this functions implements when the result type is a string type.
Definition: item_func.h:940
Item_func_num1(Item *a)
Definition: item_func.h:931
void set_numeric_type() override
Set data type for a numeric function with one argument (can be also used by a numeric function with m...
Definition: item_func.cc:1553
Item_func_num1(const POS &pos, Item *a, Item *b)
Definition: item_func.h:935
bool date_op(MYSQL_TIME *, my_time_flags_t) override
Performs the operation that this functions implements when the result type is MYSQL_TYPE_DATE or MYSQ...
Definition: item_func.h:944
bool time_op(MYSQL_TIME *) override
Definition: item_func.h:948
Definition: item_func.h:836
virtual void set_numeric_type()=0
longlong val_int() override
Definition: item_func.cc:1755
virtual longlong int_op()=0
Performs the operation that this functions implements when the result type is INT.
String * val_str(String *str) override
Definition: item_func.cc:1674
Item_func_numhybrid(const POS &pos, Item *a)
Definition: item_func.h:844
Item_func_numhybrid(mem_root_deque< Item * > *list)
Definition: item_func.h:858
enum_field_types default_data_type() const override
Get the default data (output) type for the specific item.
Definition: item_func.h:868
bool resolve_type_inner(THD *thd) override
Resolve type of function after all arguments have had their data types resolved.
Definition: item_func.cc:1666
bool is_null() override
The method allows to determine nullness of a complex expression without fully evaluating it,...
Definition: item_func.h:925
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item_func.cc:1838
virtual bool date_op(MYSQL_TIME *ltime, my_time_flags_t fuzzydate)=0
Performs the operation that this functions implements when the result type is MYSQL_TYPE_DATE or MYSQ...
Item_func_numhybrid(Item *a)
Definition: item_func.h:841
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.cc:1641
my_decimal * val_decimal(my_decimal *) override
Definition: item_func.cc:1796
enum Item_result result_type() const override
Definition: item_func.h:867
virtual bool time_op(MYSQL_TIME *ltime)=0
double val_real() override
Definition: item_func.cc:1716
Item_func_numhybrid(const POS &pos, PT_item_list *list)
Definition: item_func.h:862
void fix_num_length_and_dec() override
Definition: item_func.cc:876
Item_func_numhybrid(const POS &pos, Item *a, Item *b)
Definition: item_func.h:853
Item_result hybrid_type
Definition: item_func.h:838
virtual my_decimal * decimal_op(my_decimal *decimal_value)=0
Performs the operation that this functions implements when the result type is DECIMAL.
virtual double real_op()=0
Performs the operation that this functions implements when the result type is REAL.
bool get_time(MYSQL_TIME *ltime) override
Definition: item_func.cc:1855
virtual String * str_op(String *)=0
Performs the operation that this functions implements when the result type is a string type.
Item_func_numhybrid(Item *a, Item *b)
Definition: item_func.h:849
Definition: item_func.h:1861
const char * func_name() const override
Definition: item_func.h:1867
longlong val_int() override
Definition: item_func.cc:4342
String value
Definition: item_func.h:1862
Item_func_ord(const POS &pos, Item *a)
Definition: item_func.h:1865
Definition: item_func.h:1170
const char * func_name() const override
Definition: item_func.h:1176
Item_func_plus(const POS &pos, Item *a, Item *b)
Definition: item_func.h:1173
Item_func_plus(Item *a, Item *b)
Definition: item_func.h:1172
double real_op() override
Performs the operation that this functions implements when the result type is REAL.
Definition: item_func.cc:2099
longlong int_op() override SUPPRESS_UBSAN
Performs the operation that this functions implements when the result type is INT.
Definition: item_func.cc:2110
my_decimal * decimal_op(my_decimal *) override
Calculate plus of two decimals.
Definition: item_func.cc:2166
enum Functype functype() const override
Definition: item_func.h:1183
Definition: item_func.h:1361
double val_real() override
Definition: item_func.cc:2886
Item_func_pow(const POS &pos, Item *a, Item *b)
Definition: item_func.h:1363
const char * func_name() const override
Definition: item_func.h:1365
enum Functype functype() const override
Definition: item_func.h:1366
Definition: item_func.h:1553
Item_func_radians(const POS &pos, Item *a)
Definition: item_func.h:1555
const char * func_name() const override
Definition: item_func.h:1557
enum Functype functype() const override
Definition: item_func.h:1558
Definition: item_func.h:1482
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_func.cc:3630
double val_real() override
Definition: item_func.cc:3693
void seed_random(Item *val)
Definition: item_func.cc:3647
bool fix_fields(THD *thd, Item **ref) override
Definition: item_func.cc:3663
const char * func_name() const override
Definition: item_func.h:1494
bool first_eval
Definition: item_func.h:1486
Item_real_func super
Definition: item_func.h:1483
bool check_function_as_value_generator(uchar *checker_args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item_func.h:1510
rand_struct * m_rand
Definition: item_func.h:1485
Item_func_rand()
Definition: item_func.h:1488
Item_func_rand(const POS &pos)
Definition: item_func.h:1490
table_map get_initial_pseudo_tables() const override
This function is non-deterministic and hence depends on the 'RAND' pseudo-table.
Definition: item_func.h:1501
Item_func_rand(const POS &pos, Item *a)
Definition: item_func.h:1489
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.cc:3657
void cleanup() override
Called for every Item after use (preparation and execution).
Definition: item_func.h:1506
Definition: item_func.h:2393
longlong val_int() override
Release all user level lock held by connection.
Definition: item_func.cc:5638
Item_int_func super
Definition: item_func.h:2394
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2402
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_func.cc:5624
bool check_function_as_value_generator(uchar *checker_args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item_func.h:2407
Item_func_release_all_locks(const POS &pos)
Definition: item_func.h:2397
const char * func_name() const override
Definition: item_func.h:2401
bool is_non_const_over_literals(uchar *) override
Definition: item_func.h:2406
Definition: item_func.h:2366
Item_int_func super
Definition: item_func.h:2367
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_func.cc:5556
bool check_function_as_value_generator(uchar *checker_args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item_func.h:2384
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2377
String value
Definition: item_func.h:2369
const char * func_name() const override
Definition: item_func.h:2376
longlong val_int() override
Release a user level lock.
Definition: item_func.cc:5580
bool is_non_const_over_literals(uchar *) override
Definition: item_func.h:2383
Item_func_release_lock(const POS &pos, Item *a)
Definition: item_func.h:2372
Definition: item_func.h:1461
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.cc:3427
my_decimal * decimal_op(my_decimal *) override
Performs the operation that this functions implements when the result type is DECIMAL.
Definition: item_func.cc:3615
bool truncate
Definition: item_func.h:1462
Item_func_round(Item *a, Item *b, bool trunc_arg)
Definition: item_func.h:1465
longlong int_op() override
Performs the operation that this functions implements when the result type is INT.
Definition: item_func.cc:3549
enum Functype functype() const override
Definition: item_func.h:1477
const char * func_name() const override
Definition: item_func.h:1470
Item_func_round(const POS &pos, Item *a, Item *b, bool trunc_arg)
Definition: item_func.h:1467
double real_op() override
Performs the operation that this functions implements when the result type is REAL.
Definition: item_func.cc:3521
Definition: item_func.h:3810
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:3820
Item_func_row_count(const POS &pos)
Definition: item_func.h:3814
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_func.cc:8071
const char * func_name() const override
Definition: item_func.h:3819
Item_int_func super
Definition: item_func.h:3811
longlong val_int() override
Definition: item_func.cc:8081
bool check_function_as_value_generator(uchar *checker_args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item_func.h:3824
This class is used to implement operations like SET @variable or @variable:= expression.
Definition: item_func.h:3224
void cleanup() override
Called for every Item after use (preparation and execution).
Definition: item_func.cc:5982
union Item_func_set_user_var::@57 save_result
void print_assignment(const THD *thd, String *str, enum_query_type query_type) const
Definition: item_func.cc:6506
type_conversion_status save_in_field(Field *field, bool no_conversions, bool can_use_result_field)
Definition: item_func.cc:6582
enum Item_result result_type() const override
Definition: item_func.h:3265
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.cc:6038
Item_func_set_user_var(const POS &pos, Name_string a, Item *b)
Definition: item_func.h:3241
enum Item_result cached_result_type
Definition: item_func.h:3225
enum Functype functype() const override
Definition: item_func.h:3253
Item_func_set_user_var(Name_string a, Item *b)
Definition: item_func.h:3240
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_func.h:3285
void make_field(Send_field *tmp_field) override
Definition: item_func.cc:6534
String * val_str(String *str) override
Definition: item_func.cc:6491
void save_org_in_field(Field *field) override
Definition: item_func.h:3277
bool set_entry(THD *thd, bool create_if_not_exists)
Definition: item_func.cc:5996
bool fix_fields(THD *thd, Item **ref) override
Definition: item_func.cc:6024
bool null_item
Definition: item_func.h:3229
bool update()
Update user variable from value in save_result.
Definition: item_func.cc:6429
void save_item_result(Item *item)
Evaluate and store item's result.
Definition: item_func.cc:6398
bool update_hash(const void *ptr, uint length, enum Item_result type, const CHARSET_INFO *cs, Derivation dv, bool unsigned_arg)
Definition: item_func.cc:6182
longlong val_int() override
Definition: item_func.cc:6484
my_decimal * val_decimal(my_decimal *) override
Definition: item_func.cc:6498
double vreal
Definition: item_func.h:3232
my_decimal decimal_buff
Definition: item_func.h:3228
bool send(Protocol *protocol, String *str_arg) override
This is only called from items that is not of type item_field.
Definition: item_func.cc:6522
my_decimal * vdec
Definition: item_func.h:3234
String value
Definition: item_func.h:3227
double val_real() override
Definition: item_func.cc:6477
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item_func.cc:6515
bool check(bool use_result_field)
This functions is invoked on SET @variable or @variable:= expression.
Definition: item_func.cc:6354
const char * func_name() const override
Definition: item_func.h:3272
Name_string name
Definition: item_func.h:3238
Item_func_set_user_var(THD *thd, Item_func_set_user_var *item)
Definition: item_func.h:3244
String * vstr
Definition: item_func.h:3233
longlong vint
Definition: item_func.h:3231
Definition: item_func.h:2040
Item_func_shift_left(const POS &pos, Item *a, Item *b)
Definition: item_func.h:2042
const char * func_name() const override
Definition: item_func.h:2044
longlong int_op() override
Performs the operation on integers to produce a result of type INT_RESULT.
Definition: item_func.cc:3065
String * str_op(String *str) override
Performs the operation on binary strings to produce a result of type STRING_RESULT.
Definition: item_func.cc:3139
Definition: item_func.h:2051
String * str_op(String *str) override
Performs the operation on binary strings to produce a result of type STRING_RESULT.
Definition: item_func.cc:3143
Item_func_shift_right(const POS &pos, Item *a, Item *b)
Definition: item_func.h:2053
longlong int_op() override
Performs the operation on integers to produce a result of type INT_RESULT.
Definition: item_func.cc:3066
const char * func_name() const override
Definition: item_func.h:2055
Definition: item_func.h:2025
String * eval_str_op(String *str)
Template function that evaluates the bitwise shift operation over binary string arguments.
Definition: item_func.cc:3074
longlong eval_int_op()
Template function that evaluates the bitwise shift operation over integer arguments.
Definition: item_func.cc:3049
bool binary_result_requires_binary_second_arg() const override
Definition: item_func.h:2027
Item_func_shift(const POS &pos, Item *a, Item *b)
Definition: item_func.h:2036
Definition: item_func.h:1523
longlong val_int() override
Definition: item_func.cc:3732
Item_func_sign(const POS &pos, Item *a)
Definition: item_func.h:1525
enum Functype functype() const override
Definition: item_func.h:1527
const char * func_name() const override
Definition: item_func.h:1526
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.cc:3726
Definition: item_func.h:1402
Item_func_sin(const POS &pos, Item *a)
Definition: item_func.h:1404
double val_real() override
Definition: item_func.cc:2935
const char * func_name() const override
Definition: item_func.h:1406
enum Functype functype() const override
Definition: item_func.h:1407
Definition: item_func.h:2147
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2171
Item_func_sleep(const POS &pos, Item *a)
Definition: item_func.h:2151
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_func.cc:5883
bool check_function_as_value_generator(uchar *checker_args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item_func.h:2164
const char * func_name() const override
Definition: item_func.h:2154
table_map get_initial_pseudo_tables() const override
This function is non-deterministic and hence depends on the 'RAND' pseudo-table.
Definition: item_func.h:2161
Item_int_func super
Definition: item_func.h:2148
longlong val_int() override
This function is just used to create tests with time gaps.
Definition: item_func.cc:5893
Definition: item_func.h:3842
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_func.cc:8568
void compute_cost(CostOfItem *root_cost) const override
Compute the cost of evaluating this Item.
Definition: item_func.h:3913
double val_real() override
Definition: item_func.cc:8263
bool change_context_processor(uchar *arg) override
Definition: item_func.h:3893
longlong val_int() override
Definition: item_func.cc:8257
String * val_str(String *str) override
Definition: item_func.cc:8285
void cleanup() override
Called for every Item after use (preparation and execution).
Definition: item_func.cc:8128
Name_resolution_context * context
Definition: item_func.h:3846
my_decimal * val_decimal(my_decimal *dec_buf) override
Definition: item_func.cc:8279
bool m_deterministic
true when function execution is deterministic
Definition: item_func.h:3854
const char * func_name() const override
Definition: item_func.cc:8137
Field * sp_result_field
The result field of the concrete stored function.
Definition: item_func.h:3852
bool check_function_as_value_generator(uchar *checker_args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item_func.h:3905
bool init_result_field(THD *thd)
Initialize the result field by creating a temporary dummy table and assign it to a newly created fiel...
Definition: item_func.cc:8195
bool val_json(Json_wrapper *result) override
Get a JSON value from an Item.
Definition: item_func.cc:8300
Field * tmp_table_field(TABLE *t_arg) override
Definition: item_func.cc:8442
void update_used_tables() override
Updates used tables, not null tables information and accumulates properties up the item tree,...
Definition: item_func.cc:8561
bool get_time(MYSQL_TIME *ltime) override
Definition: item_func.cc:8274
Item_result result_type() const override
Definition: item_func.cc:8419
Field * get_sp_result_field()
Definition: item_func.h:3904
Item_func_sp(const POS &pos, const LEX_STRING &db_name, const LEX_STRING &fn_name, bool use_explicit_name, PT_item_list *opt_list)
Definition: item_func.cc:8088
bool execute_impl(THD *thd)
Execute function and store the return value in the field.
Definition: item_func.cc:8367
bool resolve_type(THD *thd) override
Initialize local members with values from the Field interface.
Definition: item_func.cc:8243
Item_func super
Definition: item_func.h:3843
void make_field(Send_field *tmp_field) override
Definition: item_func.cc:8412
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_func.cc:8104
bool execute()
Execute function & store value in field.
Definition: item_func.cc:8325
bool sp_check_access(THD *thd)
Checks if requested access to function can be granted to user.
Definition: item_func.cc:8463
enum Functype functype() const override
Definition: item_func.h:3899
sp_name * m_name
The name of the stored function.
Definition: item_func.h:3848
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item_func.cc:8269
table_map get_initial_pseudo_tables() const override
Must not be called before the procedure is resolved, i.e.
Definition: item_func.cc:8159
bool fix_fields(THD *thd, Item **ref) override
Definition: item_func.cc:8473
sp_head * m_sp
Pointer to actual function instance (null when not resolved or executing)
Definition: item_func.h:3850
Definition: item_func.h:1353
Item_func_sqrt(const POS &pos, Item *a)
Definition: item_func.h:1355
const char * func_name() const override
Definition: item_func.h:1357
double val_real() override
Definition: item_func.cc:2878
enum Functype functype() const override
Definition: item_func.h:1358
Definition: item_func.h:1410
enum Functype functype() const override
Definition: item_func.h:1415
double val_real() override
Definition: item_func.cc:2942
Item_func_tan(const POS &pos, Item *a)
Definition: item_func.h:1412
const char * func_name() const override
Definition: item_func.h:1414
Definition: item_func.h:2275
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item_func.h:2284
double val_real() override
Definition: item_func.cc:5100
Item_func_udf_decimal(const POS &pos, udf_func *udf_arg, PT_item_list *opt_list)
Definition: item_func.h:2277
longlong val_int() override
Definition: item_func.cc:5092
enum Item_result result_type() const override
Definition: item_func.h:2290
bool get_time(MYSQL_TIME *ltime) override
Definition: item_func.h:2287
String * val_str(String *str) override
Definition: item_func.cc:5113
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.cc:5123
my_decimal * val_decimal(my_decimal *) override
Definition: item_func.cc:5108
Definition: item_func.h:2226
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item_func.h:2242
Item_func_udf_float(const POS &pos, udf_func *udf_arg, PT_item_list *opt_list)
Definition: item_func.h:2228
my_decimal * val_decimal(my_decimal *dec_buf) override
Definition: item_func.h:2234
longlong val_int() override
Definition: item_func.h:2230
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2248
bool get_time(MYSQL_TIME *ltime) override
Definition: item_func.h:2245
double val_real() override
Definition: item_func.cc:5062
String * val_str(String *str) override
Definition: item_func.cc:5070
Definition: item_func.h:2255
bool get_time(MYSQL_TIME *ltime) override
Definition: item_func.h:2267
enum Item_result result_type() const override
Definition: item_func.h:2268
String * val_str(String *str) override
Definition: item_func.cc:5084
Item_func_udf_int(const POS &pos, udf_func *udf_arg, PT_item_list *opt_list)
Definition: item_func.h:2257
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2269
double val_real() override
Definition: item_func.h:2260
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item_func.h:2264
longlong val_int() override
Definition: item_func.cc:5078
Definition: item_func.h:2294
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.cc:5131
Item_func_udf_str(const POS &pos, udf_func *udf_arg, PT_item_list *opt_list)
Definition: item_func.h:2296
String * val_str(String *) override
Definition: item_func.cc:5140
bool get_time(MYSQL_TIME *ltime) override
Definition: item_func.h:2327
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item_func.h:2324
my_decimal * val_decimal(my_decimal *dec_buf) override
Definition: item_func.h:2317
enum Item_result result_type() const override
Definition: item_func.h:2330
longlong val_int() override
Definition: item_func.h:2309
double val_real() override
Definition: item_func.h:2300
Definition: item_func.h:1533
Item_func_units(const POS &pos, Item *a, double mul_arg, double add_arg)
Definition: item_func.h:1537
double add
Definition: item_func.h:1534
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.cc:3739
double val_real() override
Definition: item_func.cc:3746
double mul
Definition: item_func.h:1534
Definition: item_func.h:3942
table_map get_initial_pseudo_tables() const override
Returns the pseudo tables depended upon in order to evaluate this function expression.
Definition: item_func.h:3965
Item_int_func super
Definition: item_func.h:3943
longlong val_int() override
Definition: item_func.cc:8606
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_func.cc:8598
Item_func_uuid_short(const POS &pos)
Definition: item_func.h:3946
bool check_function_as_value_generator(uchar *checker_args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item_func.h:3956
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:3951
bool check_partition_func_processor(uchar *) override
Check if a partition function is allowed.
Definition: item_func.h:3955
const char * func_name() const override
Definition: item_func.h:3949
Definition: item_func.h:1821
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:1829
const char * func_name() const override
Definition: item_func.h:1826
Item_func_validate_password_strength(const POS &pos, Item *a)
Definition: item_func.h:1823
longlong val_int() override
Definition: item_func.cc:4265
Definition: item_func.h:3970
Item_static_string_func super
Definition: item_func.h:3971
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_func.cc:8614
Item_func_version(const POS &pos)
Definition: item_func.cc:9854
Definition: item_func.h:102
bool agg_arg_charsets_for_string_result(DTCollation &c, Item **items, uint nitems, int item_sep=1)
Definition: item_func.h:544
bool param_type_is_rejected(uint start, uint end)
For arguments of this Item_func ("args" array), in range [start,end[ : sends error if they're a dynam...
Definition: item_func.cc:543
bool param_type_uses_non_param(THD *thd, enum_field_types def=MYSQL_TYPE_VARCHAR)
Definition: item_func.cc:616
Item_func(const POS &pos, Item *a, Item *b, Item *c)
Definition: item_func.h:372
int check_decimal_overflow(int error)
Throw an error if the error code of a DECIMAL operation is E_DEC_OVERFLOW.
Definition: item_func.h:620
Item_func()
Definition: item_func.h:334
my_decimal * val_decimal(my_decimal *) override
Definition: item_func.cc:836
bool replace_equal_field_checker(uchar **arg) override
Definition: item_func.h:569
virtual bool have_rev_func() const
Definition: item_func.h:498
Item ** args
Array of pointers to arguments.
Definition: item_func.h:109
virtual enum Functype functype() const
Definition: item_func.h:333
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_func.cc:1026
bool check_function_as_value_generator(uchar *checker_args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item_func.h:778
Item_func(const POS &pos)
Definition: item_func.h:336
void update_used_tables() override
Updates used tables, not null tables information and accumulates properties up the item tree,...
Definition: item_func.cc:733
bool check_valid_arguments_processor(uchar *) override
Definition: item_func.h:674
Item_func(Item *a, Item *b)
Definition: item_func.h:348
bool fix_func_arg(THD *, Item **arg)
Definition: item_func.cc:437
bool alloc_args(MEM_ROOT *mem_root, unsigned num_args)
Allocates space for the given number of arguments, if needed.
Definition: item_func.h:116
virtual Item * get_arg(uint i)
Get the i'th argument of the function that this object represents.
Definition: item_func.h:461
bool split_sum_func(THD *thd, Ref_item_array ref_item_array, mem_root_deque< Item * > *fields) override
See comments in Item_cmp_func::split_sum_func()
Definition: item_func.cc:722
longlong val_int_from_real()
Definition: item_func.cc:2057
void traverse_cond(Cond_traverser traverser, void *arg, traverse_order order) override
Definition: item_func.cc:641
virtual table_map get_initial_pseudo_tables() const
Returns the pseudo tables depended upon in order to evaluate this function expression.
Definition: item_func.h:491
Item * compile(Item_analyzer analyzer, uchar **arg_p, Item_transformer transformer, uchar *arg_t) override
Compile Item_func object with a processor and a transformer callback functions.
Definition: item_func.cc:699
bool is_null() override
The method allows to determine nullness of a complex expression without fully evaluating it,...
Definition: item_func.h:525
Item_func(const POS &pos, Item *a)
Definition: item_func.h:343
Item * replace_equal_field(uchar *arg) override
Definition: item_func.h:575
Functype
Definition: item_func.h:187
@ DATEADD_FUNC
Definition: item_func.h:294
@ TRIG_COND_FUNC
Definition: item_func.h:231
@ SP_CROSSES_FUNC
Definition: item_func.h:215
@ ROLLUP_GROUP_ITEM_FUNC
Definition: item_func.h:242
@ NOT_ALL_FUNC
Definition: item_func.h:228
@ LIKE_FUNC
Definition: item_func.h:198
@ FALSE_FUNC
Definition: item_func.h:311
@ SP_EXTERIORRING
Definition: item_func.h:223
@ PLUS_FUNC
Definition: item_func.h:245
@ SIGN_FUNC
Definition: item_func.h:255
@ NULLIF_FUNC
Definition: item_func.h:272
@ YEAR_FUNC
Definition: item_func.h:274
@ NOT_FUNC
Definition: item_func.h:227
@ MINUS_FUNC
Definition: item_func.h:246
@ HOUR_FUNC
Definition: item_func.h:285
@ TIME_TO_SEC_FUNC
Definition: item_func.h:299
@ LOG_FUNC
Definition: item_func.h:257
@ PERIODDIFF_FUNC
Definition: item_func.h:315
@ XOR_FUNC
Definition: item_func.h:204
@ COND_OR_FUNC
Definition: item_func.h:203
@ JSON_CONTAINS
Definition: item_func.h:305
@ JSON_UNQUOTE_FUNC
Definition: item_func.h:307
@ GREATEST_FUNC
Definition: item_func.h:302
@ SP_EQUALS_FUNC
Definition: item_func.h:210
@ LN_FUNC
Definition: item_func.h:258
@ FROM_UNIXTIME_FUNC
Definition: item_func.h:295
@ COND_AND_FUNC
Definition: item_func.h:202
@ EQ_FUNC
Definition: item_func.h:189
@ MAKETIME_FUNC
Definition: item_func.h:277
@ FUNC_SP
Definition: item_func.h:237
@ ROUND_FUNC
Definition: item_func.h:250
@ NOW_FUNC
Definition: item_func.h:229
@ FROM_DAYS_FUNC
Definition: item_func.h:230
@ TRUE_FUNC
Definition: item_func.h:310
@ LEAST_FUNC
Definition: item_func.h:304
@ IN_FUNC
Definition: item_func.h:206
@ CONVERT_TZ_FUNC
Definition: item_func.h:296
@ LE_FUNC
Definition: item_func.h:193
@ COLLATE_FUNC
Definition: item_func.h:234
@ GSYSVAR_FUNC
Definition: item_func.h:240
@ MATCH_FUNC
Definition: item_func.h:197
@ FT_FUNC
Definition: item_func.h:196
@ GUSERVAR_FUNC
Definition: item_func.h:233
@ LT_FUNC
Definition: item_func.h:192
@ MOD_FUNC
Definition: item_func.h:270
@ SP_COVEREDBY_FUNC
Definition: item_func.h:218
@ NEG_FUNC
Definition: item_func.h:239
@ DD_INTERNAL_FUNC
Definition: item_func.h:244
@ ISNULL_FUNC
Definition: item_func.h:199
@ JSON_ARRAY_FUNC
Definition: item_func.h:323
@ SP_TOUCHES_FUNC
Definition: item_func.h:214
@ SP_DISJOINT_FUNC
Definition: item_func.h:211
@ ISNOTNULLTEST_FUNC
Definition: item_func.h:209
@ DAY_FUNC
Definition: item_func.h:280
@ LOG10_FUNC
Definition: item_func.h:259
@ UDF_FUNC
Definition: item_func.h:238
@ MULT_EQUAL_FUNC
Definition: item_func.h:207
@ MAKEDATE_FUNC
Definition: item_func.h:276
@ COT_FUNC
Definition: item_func.h:263
@ ISTRUTH_FUNC
Definition: item_func.h:201
@ SEC_TO_TIME_FUNC
Definition: item_func.h:316
@ DATE_FUNC
Definition: item_func.h:284
@ TIMESTAMPDIFF_FUNC
Definition: item_func.h:300
@ SECOND_FUNC
Definition: item_func.h:287
@ EXP_FUNC
Definition: item_func.h:266
@ SP_STARTPOINT
Definition: item_func.h:221
@ JSON_DEPTH_FUNC
Definition: item_func.h:320
@ PERIODADD_FUNC
Definition: item_func.h:314
@ SP_POINTN
Definition: item_func.h:224
@ EXTRACT_FUNC
Definition: item_func.h:235
@ MONTH_FUNC
Definition: item_func.h:278
@ TO_SECONDS_FUNC
Definition: item_func.h:283
@ ABS_FUNC
Definition: item_func.h:253
@ BETWEEN
Definition: item_func.h:205
@ IF_FUNC
Definition: item_func.h:271
@ JSON_OBJECT_FUNC
Definition: item_func.h:322
@ MICROSECOND_FUNC
Definition: item_func.h:288
@ ANY_VALUE_FUNC
Definition: item_func.h:318
@ STRCMP_FUNC
Definition: item_func.h:309
@ QUARTER_FUNC
Definition: item_func.h:291
@ NE_FUNC
Definition: item_func.h:191
@ TIMEDIFF_FUNC
Definition: item_func.h:313
@ JSON_EXTRACT_FUNC
Definition: item_func.h:321
@ TABLE_FUNC
Definition: item_func.h:243
@ MEMBER_OF_FUNC
Definition: item_func.h:308
@ POW_FUNC
Definition: item_func.h:254
@ GE_FUNC
Definition: item_func.h:194
@ SP_GEOMETRYN
Definition: item_func.h:225
@ SYSDATE_FUNC
Definition: item_func.h:312
@ MONTHNAME_FUNC
Definition: item_func.h:279
@ TYPECAST_FUNC
Definition: item_func.h:236
@ SUSERVAR_FUNC
Definition: item_func.h:232
@ EQUAL_FUNC
Definition: item_func.h:190
@ GT_FUNC
Definition: item_func.h:195
@ RADIANS_FUNC
Definition: item_func.h:265
@ UNKNOWN_FUNC
Definition: item_func.h:188
@ SP_DISTANCE_FUNC
Definition: item_func.h:212
@ SP_WITHIN_FUNC
Definition: item_func.h:216
@ SP_INTERIORRINGN
Definition: item_func.h:226
@ SIN_FUNC
Definition: item_func.h:260
@ SP_INTERSECTS_FUNC
Definition: item_func.h:213
@ LAST_DAY_FUNC
Definition: item_func.h:297
@ WEEKDAY_FUNC
Definition: item_func.h:293
@ ADDTIME_FUNC
Definition: item_func.h:290
@ DEGREES_FUNC
Definition: item_func.h:264
@ JSON_OVERLAPS
Definition: item_func.h:306
@ DAYOFYEAR_FUNC
Definition: item_func.h:289
@ SQRT_FUNC
Definition: item_func.h:252
@ GROUPING_FUNC
Definition: item_func.h:241
@ ISNOTNULL_FUNC
Definition: item_func.h:200
@ ASIN_FUNC
Definition: item_func.h:267
@ TRUNCATE_FUNC
Definition: item_func.h:251
@ TAN_FUNC
Definition: item_func.h:261
@ GET_FORMAT_FUNC
Definition: item_func.h:317
@ ATAN_FUNC
Definition: item_func.h:268
@ JSON_LENGTH_FUNC
Definition: item_func.h:319
@ DAYNAME_FUNC
Definition: item_func.h:281
@ DATETIME_LITERAL
Definition: item_func.h:301
@ MINUTE_FUNC
Definition: item_func.h:286
@ ACOS_FUNC
Definition: item_func.h:269
@ COS_FUNC
Definition: item_func.h:262
@ INTERVAL_FUNC
Definition: item_func.h:208
@ MUL_FUNC
Definition: item_func.h:247
@ SP_COVERS_FUNC
Definition: item_func.h:219
@ CEILING_FUNC
Definition: item_func.h:249
@ TO_DAYS_FUNC
Definition: item_func.h:282
@ WEEK_FUNC
Definition: item_func.h:292
@ YEARWEEK_FUNC
Definition: item_func.h:275
@ SP_CONTAINS_FUNC
Definition: item_func.h:217
@ FLOOR_FUNC
Definition: item_func.h:256
@ CASE_FUNC
Definition: item_func.h:273
@ COALESCE_FUNC
Definition: item_func.h:303
@ SP_ENDPOINT
Definition: item_func.h:222
@ DIV_FUNC
Definition: item_func.h:248
@ SP_OVERLAPS_FUNC
Definition: item_func.h:220
@ UNIX_TIMESTAMP_FUNC
Definition: item_func.h:298
Item * m_embedded_arguments[2]
Definition: item_func.h:112
virtual uint argument_count() const
Definition: item_func.h:133
longlong check_integer_overflow(longlong value, bool val_unsigned)
Throw an error if the input BIGINT value represented by the (longlong value, bool unsigned flag) pair...
Definition: item_func.h:610
Item * replace_func_call(uchar *) override
Definition: item_func.cc:621
void print_op(const THD *thd, String *str, enum_query_type query_type) const
Definition: item_func.cc:763
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_func.cc:1044
Item_func(const POS &pos, Item *a, Item *b, Item *c, Item *d, Item *e)
Definition: item_func.h:415
virtual enum_const_item_cache can_cache_json_arg(Item *arg)
Whether an arg of a JSON function can be cached to avoid repetitive string->JSON conversion.
Definition: item_func.h:697
Item * gc_subst_transformer(uchar *arg) override
Transformer function for GC substitution.
Definition: item_func.cc:1333
table_map used_tables_cache
Value used in calculation of result of used_tables()
Definition: item_func.h:171
bool param_type_is_default(THD *thd, uint start, uint end, enum_field_types def=MYSQL_TYPE_VARCHAR)
Definition: item_func.h:147
optimize_type
Definition: item_func.h:325
@ OPTIMIZE_NONE
Definition: item_func.h:326
@ OPTIMIZE_EQUAL
Definition: item_func.h:330
@ OPTIMIZE_NULL
Definition: item_func.h:329
@ OPTIMIZE_KEY
Definition: item_func.h:327
@ OPTIMIZE_OP
Definition: item_func.h:328
void set_used_tables(table_map map)
Definition: item_func.h:495
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_func.cc:360
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:680
const Item_field * contributes_to_filter(THD *thd, table_map read_tables, table_map filter_for_table, const MY_BITMAP *fields_to_ignore) const
Whether or not an item should contribute to the filtering effect (.
Definition: item_func.cc:916
bool has_timestamp_args()
Definition: item_func.h:624
bool agg_arg_charsets(DTCollation &c, Item **items, uint nitems, uint flags, int item_sep)
Definition: item_func.h:534
virtual bool is_deprecated() const
Definition: item_func.h:518
Item_func(const POS &pos, Item *a, Item *b, Item *c, Item *d, Item *e, Item *f)
Definition: item_func.h:440
enum Type type() const override
Definition: item_func.h:332
virtual Item * key_item() const
Definition: item_func.h:499
bool param_type_is_default(THD *thd, uint start, uint end, uint step, enum_field_types def)
For arguments of this Item_func ("args" array), in range [start, start+step, start+2*step,...
Definition: item_func.cc:527
Item_func(const POS &pos, Item *a, Item *b, Item *c, Item *d)
Definition: item_func.h:393
virtual bool may_have_named_parameters() const
Named parameters are allowed in a parameter list.
Definition: item_func.h:775
bool is_valid_for_pushdown(uchar *arg) override
Check if all the columns present in this expression are from the derived table.
Definition: item_func.cc:1018
bool propagate_type(THD *thd, const Type_properties &type) override
Default implementation for all functions: Propagate base_item's type into all arguments.
Definition: item_func.cc:503
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item_func.cc:747
bool get_arg0_date(MYSQL_TIME *ltime, my_time_flags_t fuzzy_date)
Definition: item_func.h:519
Item_func(Item *a, Item *b, Item *c, Item *d)
Definition: item_func.h:380
bool fix_fields(THD *, Item **ref) override
Definition: item_func.cc:405
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_func.cc:459
bool set_arguments(mem_root_deque< Item * > *list, bool context_free)
Copy arguments from list to args array.
Definition: item_func.cc:328
virtual bool allow_replacement(Item_field *const original, Item *const subst)
Check whether a function allows replacement of a field with another item: In particular,...
Definition: item_func.h:593
Item_func(const POS &pos, Item *a, Item *b)
Definition: item_func.h:355
virtual optimize_type select_optimize(const THD *)
Definition: item_func.h:497
bool has_date_args()
Definition: item_func.h:634
virtual const Item * get_arg(uint i) const
Get the i'th argument of the function that this object represents.
Definition: item_func.h:464
uint arg_count
How many arguments in 'args'.
Definition: item_func.h:132
Item_func(Item *a, Item *b, Item *c, Item *d, Item *e)
Definition: item_func.h:401
Item ** arguments() const
Definition: item_func.h:134
Field * tmp_table_field(TABLE *t_arg) override
Definition: item_func.cc:794
bool is_null_on_null() const
Definition: item_func.h:176
bool has_time_args()
Definition: item_func.h:645
bool is_non_const_over_literals(uchar *) override
Definition: item_func.h:776
bool agg_arg_charsets_for_comparison(DTCollation &c, Item **items, uint nitems, int item_sep=1)
Definition: item_func.h:554
virtual void fix_num_length_and_dec()
Definition: item_func.cc:862
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_func.cc:894
void signal_invalid_argument_for_log()
Definition: item_func.cc:886
bool has_datetime_args()
Definition: item_func.h:656
void signal_divide_by_null()
Definition: item_func.cc:878
double check_float_overflow(double value)
Throw an error if the input double number is not finite, i.e.
Definition: item_func.h:602
bool get_arg0_time(MYSQL_TIME *ltime)
Definition: item_func.h:522
Item_func(Item *a)
Definition: item_func.h:339
bool eq(const Item *item, bool binary_cmp) const override
Definition: item_func.cc:777
Item_func(mem_root_deque< Item * > *list)
Definition: item_func.h:451
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_func.h:493
table_map not_null_tables_cache
Value used in calculation of result of not_null_tables()
Definition: item_func.h:173
virtual Item * set_arg(THD *, uint, Item *)
Definition: item_func.h:465
bool null_on_null
Affects how to determine that NULL argument implies a NULL function return.
Definition: item_func.h:164
void print_args(const THD *thd, String *str, uint from, enum_query_type query_type) const
Definition: item_func.cc:755
Item_func(Item *a, Item *b, Item *c, Item *d, Item *e, Item *f)
Definition: item_func.h:424
table_map used_tables() const override
Definition: item_func.h:492
virtual bool contains_only_equi_join_condition() const
Whether this Item is an equi-join condition.
Definition: item_func.h:707
bool walk(Item_processor processor, enum_walk walk, uchar *arg) override
Traverses a tree of Items in prefix and/or postfix order.
Definition: item_func.cc:630
Item * transform(Item_transformer transformer, uchar *arg) override
Transform an Item_func object with a transformer callback function.
Definition: item_func.cc:674
virtual bool resolve_type_inner(THD *)
Resolve type of function after all arguments have had their data types resolved.
Definition: item_func.h:481
Item_func(Item *a, Item *b, Item *c)
Definition: item_func.h:361
uint allowed_arg_cols
Definition: item_func.h:169
Definition: item_func.h:983
String * val_str(String *str) override
Definition: item_func.cc:1473
Item_int_func(const POS &pos, Item *a)
Definition: item_func.h:991
Item_int_func(Item *a, Item *b, Item *c)
Definition: item_func.h:1002
Item_int_func(const POS &pos)
Definition: item_func.h:986
Item_int_func(Item *a, Item *b)
Definition: item_func.h:995
Item_int_func(const POS &pos, PT_item_list *opt_list)
Definition: item_func.h:1021
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item_func.h:1031
double val_real() override
Definition: item_func.cc:1467
Item_int_func(const POS &pos, Item *a, Item *b, Item *c)
Definition: item_func.h:1005
Item_int_func()
Definition: item_func.h:985
Item_int_func(const POS &pos, Item *a, Item *b)
Definition: item_func.h:998
Item_int_func(Item *a)
Definition: item_func.h:990
Item_int_func(mem_root_deque< Item * > *list)
Definition: item_func.h:1018
Item_int_func(const POS &pos, Item *a, Item *b, Item *c, Item *d)
Definition: item_func.h:1013
enum Item_result result_type() const override
Definition: item_func.h:1035
Item_int_func(Item *a, Item *b, Item *c, Item *d)
Definition: item_func.h:1010
Item_int_func(THD *thd, Item_int_func *item)
Definition: item_func.h:1026
bool get_time(MYSQL_TIME *ltime) override
Definition: item_func.h:1034
Definition: item_func.h:2450
Item_master_pos_wait(const POS &pos, Item *a, Item *b)
Definition: item_func.h:2452
Item_master_pos_wait(const POS &pos, Item *a, Item *b, Item *c)
Definition: item_func.h:2454
Item_master_pos_wait(const POS &pos, Item *a, Item *b, Item *c, Item *d)
Definition: item_func.h:2456
longlong val_int() override
Wait until we are at or past the given position in the master binlog on the slave.
Definition: item_func.cc:5219
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
Definition: item_func.h:955
String * str_op(String *) override
Performs the operation that this functions implements when the result type is a string type.
Definition: item_func.h:969
Item_num_op(const POS &pos, Item *a, Item *b)
Definition: item_func.h:958
virtual void result_precision()=0
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item_func.h:963
bool date_op(MYSQL_TIME *, my_time_flags_t) override
Performs the operation that this functions implements when the result type is MYSQL_TYPE_DATE or MYSQ...
Definition: item_func.h:973
Item_num_op(Item *a, Item *b)
Definition: item_func.h:957
void set_numeric_type() override
Check arguments to determine the data type for a numeric function of two arguments.
Definition: item_func.cc:1510
bool time_op(MYSQL_TIME *) override
Definition: item_func.h:977
Definition: item_func.h:795
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item_func.h:827
longlong val_int() override
Definition: item_func.h:823
my_decimal * val_decimal(my_decimal *decimal_value) override
Definition: item_func.cc:854
bool get_time(MYSQL_TIME *ltime) override
Definition: item_func.h:830
Item_real_func(Item *a, Item *b)
Definition: item_func.h:807
String * val_str(String *str) override
Definition: item_func.cc:845
Item_real_func(mem_root_deque< Item * > *list)
Definition: item_func.h:813
Item_real_func(const POS &pos)
Definition: item_func.h:798
Item_real_func(const POS &pos, Item *a)
Definition: item_func.h:803
enum Item_result result_type() const override
Definition: item_func.h:833
Item_real_func()
Definition: item_func.h:797
Item_real_func(const POS &pos, PT_item_list *list)
Definition: item_func.h:817
Item_real_func(Item *a)
Definition: item_func.h:802
Item_real_func(const POS &pos, Item *a, Item *b)
Definition: item_func.h:809
Item with result field.
Definition: item.h:5809
int raise_decimal_overflow()
Definition: item.h:5880
longlong raise_integer_overflow()
Definition: item.h:5875
longlong llrint_with_overflow_check(double realval)
Definition: item.h:5860
void cleanup() override
Called for every Item after use (preparation and execution).
Definition: item.cc:10928
double raise_float_overflow()
Definition: item.h:5870
virtual const char * func_name() const =0
A wrapper Item that normally returns its parameter, but becomes NULL when processing rows for rollup.
Definition: item_func.h:1679
const char * func_name() const override
Definition: item_func.h:1699
bool rollup_null() const
Definition: item_func.h:1724
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item_func.cc:4148
table_map used_tables() const override
Definition: item_func.h:1700
TYPELIB * get_typelib() const override
Get the typelib information for an item of type set or enum.
Definition: item_func.cc:4171
String * val_str(String *str) override
Definition: item_func.cc:4115
bool val_json(Json_wrapper *result) override
Get a JSON value from an Item.
Definition: item_func.cc:4137
const int m_min_rollup_level
Definition: item_func.h:1740
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:1714
my_decimal * val_decimal(my_decimal *dec) override
Definition: item_func.cc:4126
Item_result result_type() const override
Definition: item_func.h:1713
Item_rollup_group_item(int min_rollup_level, Item *inner_item)
Definition: item_func.h:1681
void set_current_rollup_level(int level)
Definition: item_func.h:1734
int min_rollup_level() const
Definition: item_func.h:1737
int m_current_rollup_level
Definition: item_func.h:1741
longlong val_int() override
Definition: item_func.cc:4104
Item * inner_item()
Definition: item_func.h:1722
const Item * inner_item() const
Definition: item_func.h:1723
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item_func.cc:4074
bool get_time(MYSQL_TIME *ltime) override
Definition: item_func.cc:4084
enum Functype functype() const override
Definition: item_func.h:1727
void update_used_tables() override
Updates used tables, not null tables information and accumulates properties up the item tree,...
Definition: item_func.h:1709
double val_real() override
Definition: item_func.cc:4093
bool eq(const Item *item, bool binary_cmp) const override
Definition: item_func.cc:4165
Definition: item_func.h:2418
const char * func_name() const override
Definition: item_func.h:2432
bool check_function_as_value_generator(uchar *checker_args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item_func.h:2441
Item_source_pos_wait(const POS &pos, Item *a, Item *b, Item *c, Item *d)
Definition: item_func.h:2427
Item_source_pos_wait(const POS &pos, Item *a, Item *b, Item *c)
Definition: item_func.h:2425
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:2433
longlong val_int() override
Wait until we are at or past the given position in the master binlog on the slave.
Definition: item_func.cc:5161
String value
Definition: item_func.h:2420
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_func.cc:5148
Item_int_func super
Definition: item_func.h:2419
Item_source_pos_wait(const POS &pos, Item *a, Item *b)
Definition: item_func.h:2423
Utility mixin class to be able to walk() only parts of item trees.
Definition: item.h:744
Definition: item_func.h:1093
Item_typecast_decimal(const POS &pos, Item *a, int len, int dec)
Definition: item_func.h:1098
longlong val_int() override
Definition: item_func.cc:1980
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item_func.cc:2018
const char * func_name() const override
Definition: item_func.h:1118
enum Item_result result_type() const override
Definition: item_func.h:1112
void add_json_info(Json_object *obj) override
Add all the node-specific json fields.
Definition: item_func.cc:2032
String * val_str(String *str) override
Definition: item_func.cc:1965
my_decimal * val_decimal(my_decimal *) override
Definition: item_func.cc:1988
bool get_time(MYSQL_TIME *ltime) override
Definition: item_func.h:1108
double val_real() override
Definition: item_func.cc:1972
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item_func.h:1105
enum Functype functype() const override
Definition: item_func.h:1119
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:1113
Class used to implement CAST to floating-point data types.
Definition: item_func.h:1127
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item_func.cc:2091
void add_json_info(Json_object *obj) override
Add all the node-specific json fields.
Definition: item_func.h:1129
enum Item_result result_type() const override
Definition: item_func.h:1149
Item_typecast_real(const POS &pos, Item *a, bool as_double)
Definition: item_func.h:1135
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.h:1150
Item_typecast_real(Item *a)
Definition: item_func.h:1142
String * val_str(String *str) override
Definition: item_func.cc:2039
double val_real() override
Definition: item_func.cc:2043
longlong val_int() override
Definition: item_func.h:1145
const char * func_name() const override
Definition: item_func.h:1153
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item_func.cc:2074
bool get_time(MYSQL_TIME *ltime) override
Definition: item_func.cc:2079
enum Functype functype() const override
Definition: item_func.h:1154
my_decimal * val_decimal(my_decimal *decimal_value) override
Definition: item_func.cc:2083
Definition: item_func.h:1067
const char * func_name() const override
Definition: item_func.h:1072
Item_typecast_signed(const POS &pos, Item *a)
Definition: item_func.h:1069
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item_func.cc:1872
longlong val_int() override
Definition: item_func.cc:1902
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.cc:1879
enum Functype functype() const override
Definition: item_func.h:1077
Definition: item_func.h:1080
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item_func.cc:1930
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_func.cc:1937
Item_typecast_unsigned(const POS &pos, Item *a)
Definition: item_func.h:1082
longlong val_int() override
Definition: item_func.cc:1942
const char * func_name() const override
Definition: item_func.h:1085
enum Functype functype() const override
Definition: item_func.h:1090
Definition: item_func.h:2178
Item_func super
Definition: item_func.h:2179
Item_udf_func(const POS &pos, udf_func *udf_arg, PT_item_list *opt_list)
Definition: item_func.h:2185
const char * func_name() const override
Definition: item_func.h:2192
bool may_have_named_parameters() const override
Named parameters are allowed in a parameter list.
Definition: item_func.h:2216
bool check_function_as_value_generator(uchar *checker_args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item_func.h:2203
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item_func.cc:5033
bool fix_fields(THD *thd, Item **ref) override
Definition: item_func.cc:4549
void cleanup() override
Called for every Item after use (preparation and execution).
Definition: item_func.cc:5027
table_map get_initial_pseudo_tables() const override
Returns the pseudo tables depended upon in order to evaluate this function expression.
Definition: item_func.h:2194
~Item_udf_func() override=default
Item_result result_type() const override
Definition: item_func.h:2199
udf_handler udf
Definition: item_func.h:2182
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_func.cc:5018
enum Functype functype() const override
Definition: item_func.h:2193
void compute_cost(CostOfItem *root_cost) const override
Compute the cost of evaluating this Item.
Definition: item_func.h:2211
bool m_non_deterministic
This member is set during resolving and is used by update_used_tables() and fix_after_pullout() to pr...
Definition: item_func.h:2223
Definition: item_func.h:3343
bool get_date(MYSQL_TIME *, my_time_flags_t) override
Definition: item_func.h:3358
double val_real() override
Definition: item_func.cc:7078
void set_value(const char *str, size_t length, const CHARSET_INFO *cs)
Definition: item_func.cc:7070
longlong val_int() override
Definition: item_func.cc:7083
bool fix_fields(THD *thd, Item **ref) override
Definition: item_func.cc:7039
String * val_str(String *str) override
Definition: item_func.cc:7088
Name_string name
Definition: item_func.h:3344
Item_user_var_as_out_param(const POS &pos, Name_string a)
Definition: item_func.h:3348
enum Type type() const override
Definition: item_func.h:3353
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item_func.cc:7098
bool get_time(MYSQL_TIME *) override
Definition: item_func.h:3362
void set_null_value(const CHARSET_INFO *cs)
Definition: item_func.cc:7064
my_decimal * val_decimal(my_decimal *decimal_buffer) override
Definition: item_func.cc:7093
user_var_entry * entry
Definition: item_func.h:3345
Common class for: Item_func_get_system_var Item_func_get_user_var Item_func_set_user_var.
Definition: item_func.h:2991
Item_var_func(const POS &pos, Item *a)
Definition: item_func.h:2999
bool get_time(MYSQL_TIME *ltime) override
Definition: item_func.h:3004
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item_func.h:3001
Item_var_func()
Definition: item_func.h:2993
bool check_function_as_value_generator(uchar *checker_args) override
Check if this item is allowed for a virtual column or inside a default expression.
Definition: item_func.h:3007
Item_var_func(THD *thd, Item_var_func *item)
Definition: item_func.h:2996
Item_var_func(Item *a)
Definition: item_func.h:2998
Item_var_func(const POS &pos)
Definition: item_func.h:2994
Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:936
virtual double val_real()=0
String str_value
str_values's main purpose is to cache the value in save_in_field
Definition: item.h:3531
void set_nullable(bool nullable)
Definition: item.h:3640
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
bool is_nullable() const
Definition: item.h:3639
bool get_time_from_string(MYSQL_TIME *ltime)
Convert val_str() to time in MYSQL_TIME.
Definition: item.cc:1688
virtual bool propagate_type(THD *thd, const Type_properties &type)
Propagate data type specifications into parameters and user variables.
Definition: item.h:1316
virtual bool get_time(MYSQL_TIME *ltime)=0
void set_data_type_float()
Set the data type of the Item to be single precision floating point.
Definition: item.h:1574
static Item_result type_to_result(enum_field_types type)
Definition: item.h:1046
virtual table_map used_tables() const
Definition: item.h:2338
bool get_time_from_real(MYSQL_TIME *ltime)
Convert val_real() to time in MYSQL_TIME.
Definition: item.cc:1698
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
void add_accum_properties(const Item *item)
Add more accumulated properties to an Item.
Definition: item.h:3389
void set_data_type_double()
Set the data type of the Item to be double precision floating point.
Definition: item.h:1566
enum_field_types data_type() const
Retrieve the derived data type of the Item.
Definition: item.h:1469
Item_name_string item_name
Name from query.
Definition: item.h:3539
bool fixed
True if item has been resolved.
Definition: item.h:3628
enum_const_item_cache
How to cache constant JSON data.
Definition: item.h:1003
@ CACHE_NONE
Don't cache.
Definition: item.h:1005
virtual Item_result result_type() const
Definition: item.h:1439
bool null_value
True if item is null.
Definition: item.h:3665
Type
Definition: item.h:971
@ FIELD_ITEM
A reference to a field (column) in a table.
Definition: item.h:973
@ FUNC_ITEM
A function call reference.
Definition: item.h:974
@ STRING_ITEM
A string literal value.
Definition: item.h:977
bool get_time_from_non_temporal(MYSQL_TIME *ltime)
Convert a non-temporal type to time.
Definition: item.cc:1763
uint8 m_accum_properties
Definition: item.h:3706
void set_accum_properties(const Item *item)
Set accumulated properties for an Item.
Definition: item.h:3384
my_decimal * val_decimal_from_real(my_decimal *decimal_value)
Definition: item.cc:350
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
bool unsigned_flag
Definition: item.h:3666
virtual bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate)=0
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
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
traverse_order
Definition: item.h:1000
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
virtual String * val_str(String *str)=0
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
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
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
bool update_null_value()
Make sure the null_value member has a correct value.
Definition: item.cc:7628
void set_data_type_decimal(uint8 precision, uint8 scale)
Set the data type of the Item to be decimal.
Definition: item.h:1557
bool get_time_from_int(MYSQL_TIME *ltime)
Convert val_int() to time in MYSQL_TIME.
Definition: item.cc:1716
Definition: sql_optimizer.h:133
Represents a JSON container value of type "object" (ECMA), type J_OBJECT here.
Definition: json_dom.h:369
bool add_alias(const std::string &key, Json_dom *value)
Insert the value into the object.
Definition: json_dom.h:411
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
Storage for name strings.
Definition: item.h:292
A visitor that calls the specified function on every non-aggregated full-text search function (Item_f...
Definition: item_func.h:3746
std::function< bool(Item_func_match *)> m_func
Definition: item_func.h:3753
bool operator()(Item *item)
Definition: item_func.cc:7961
NonAggregatedFullTextSearchVisitor(std::function< bool(Item_func_match *)> func)
Definition: item_func.cc:7957
Wrapper class for an Item list head, used to allocate Item lists in the parser in a context-independe...
Definition: parse_tree_helpers.h:105
void error(Context *pc, const POS &pos) const
syntax_error() function replacement for deferred reporting of syntax errors
Definition: parse_tree_node_base.h:344
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
A wrapper class for null-terminated constant strings.
Definition: sql_string.h:74
Using this class is fraught with peril, and you need to be very careful when doing so.
Definition: sql_string.h:167
const CHARSET_INFO * charset() const
Definition: sql_string.h:240
const char * ptr() const
Definition: sql_string.h:249
size_t length() const
Definition: sql_string.h:241
Wrapper interface for all kinds of system variables.
Definition: set_var.h:575
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
TABLE * table
Definition: table.h:3641
Type properties, used to collect type information for later assignment to an Item object.
Definition: item.h:631
Table_flags ha_table_flags() const
The cached_table_flags is set at ha_open and ha_external_lock.
Definition: handler.h:4919
A (partial) implementation of std::deque allocating its blocks on a MEM_ROOT.
Definition: mem_root_deque.h:111
my_decimal class limits 'decimal_t' type to what we need in MySQL.
Definition: my_decimal.h:95
sp_head represents one instance of a stored program.
Definition: sp_head.h:383
Definition: sp_head.h:123
Definition: sp_rcontext.h:77
A class representing one system variable - that is something that can be accessed as @global....
Definition: set_var.h:106
Item_result result_type() const
Definition: sql_udf.h:118
const char * name() const
Definition: sql_udf.h:117
Definition: item_func.h:3021
char * internal_buffer_ptr()
Position inside a user_var_entry where small values are stored: double values, longlong values and st...
Definition: item_func.h:3038
static const size_t extra_size
Definition: item_func.h:3110
Simple_cstring entry_name
Definition: item_func.h:3135
Item_result m_type
Value type.
Definition: item_func.h:3113
size_t m_length
Value length.
Definition: item_func.h:3112
longlong val_int(bool *null_value) const
Get the value of a variable as an integer.
Definition: item_func.cc:6242
bool unsigned_flag
Definition: item_func.h:3137
THD * m_owner
Definition: item_func.h:3114
size_t length() const
Definition: item_func.h:3209
query_id_t used_query_id() const
Definition: item_func.h:3179
THD * owner_session() const
Definition: item_func.h:3133
static user_var_entry * create(THD *thd, const Name_string &name, const CHARSET_INFO *cs)
Allocates and initializes a user variable instance.
Definition: item_func.cc:6085
void set_value(char *value, size_t length)
Definition: item_func.h:3026
String * val_str(bool *null_value, String *str, uint decimals) const
Get the value of a variable as a string.
Definition: item_func.cc:6281
const char * ptr() const
Definition: item_func.h:3208
void free_value()
Free the external value buffer, if it's allocated.
Definition: item_func.h:3066
bool store(const void *from, size_t length, Item_result type)
Store a value of the given type into a user_var_entry instance.
Definition: item_func.cc:6132
void init(THD *thd, const Simple_cstring &name, const CHARSET_INFO *cs)
Initialize all members.
Definition: item_func.cc:6120
Item_result type() const
The data type of this variable.
Definition: item_func.h:3211
void destroy()
Free all memory used by a user_var_entry instance previously created by create().
Definition: item_func.h:3198
bool alloced()
Check if m_ptr points to an external buffer previously allocated by realloc().
Definition: item_func.h:3061
void lock()
Definition: item_func.cc:6172
void unlock()
Definition: item_func.cc:6177
void set_null_value(Item_result type)
Set value to NULL.
Definition: item_func.h:3171
void copy_name(const Simple_cstring &name)
Copy the array of characters from the given name into the internal name buffer and initialize entry_n...
Definition: item_func.h:3074
DTCollation collation
Definition: item_func.h:3136
void set_type(Item_result type)
Set type of to the given value.
Definition: item_func.h:3162
char * m_ptr
Value.
Definition: item_func.h:3111
query_id_t m_used_query_id
Set to the id of the most recent query that has used the variable.
Definition: item_func.h:3128
void assert_locked() const
Assert the user variable is locked.
Definition: item_func.cc:6157
void reset_value()
Definition: item_func.h:3022
char * name_ptr()
Position inside a user_var_entry where a null-terminates array of characters representing the variabl...
Definition: item_func.h:3046
double val_real(bool *null_value) const
Get the value of a variable as a double.
Definition: item_func.cc:6213
my_decimal * val_decimal(bool *null_value, my_decimal *result) const
Get the value of a variable as a decimal.
Definition: item_func.cc:6313
bool mem_realloc(size_t length)
Initialize m_ptr to the internal buffer (if the value is small enough), or allocate a separate buffer...
Definition: item_func.cc:6102
void set_used_query_id(query_id_t query_id)
Definition: item_func.h:3178
static MEM_ROOT mem_root
Definition: client_plugin.cc:114
#define E_DEC_FATAL_ERROR
Definition: decimal.h:149
#define E_DEC_OVERFLOW
Definition: decimal.h:144
enum_query_type
Query type constants (usable as bitmap flags).
Definition: enum_query_type.h:31
type_conversion_status
Status when storing a value in a field or converting from one datatype to another.
Definition: field.h:202
@ VGS_CHECK_CONSTRAINT
Definition: field.h:476
@ VGS_GENERATED_COLUMN
Definition: field.h:474
Derivation
For use.
Definition: field.h:179
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_VARCHAR
Definition: field_types.h:71
@ MYSQL_TYPE_LONGLONG
Definition: field_types.h:64
@ MYSQL_TYPE_TIME
Definition: field_types.h:67
@ MYSQL_TYPE_INVALID
Definition: field_types.h:77
@ MYSQL_TYPE_NEWDECIMAL
Definition: field_types.h:80
@ MYSQL_TYPE_DOUBLE
Definition: field_types.h:61
@ MYSQL_TYPE_DATE
Definition: field_types.h:66
@ MYSQL_TYPE_TIMESTAMP
Definition: field_types.h:63
@ MYSQL_TYPE_DATETIME
Definition: field_types.h:68
static const std::string dec("DECRYPTION")
Some definitions for full-text indices.
ft_operation
Operation types, used in FT_HINTS.
Definition: ft_global.h:99
@ FT_OP_NO
Operation undefined, use of hints is impossible.
Definition: ft_global.h:101
#define FTS_DOCID_IN_RESULT
Definition: ft_global.h:66
#define FT_SORTED
Definition: ft_global.h:108
#define FTS_ORDERED_RESULT
Definition: ft_global.h:65
#define FT_BOOL
Definition: ft_global.h:107
cache_type
Definition: my_sys.h:287
static int flags[50]
Definition: hp_test1.cc:40
static void start(mysql_harness::PluginFuncEnv *env)
Definition: http_auth_backend_plugin.cc:180
bool agg_item_charsets(DTCollation &coll, const char *fname, Item **args, uint nargs, uint flags, int item_sep, bool only_consts)
Definition: item.cc:2817
bool agg_item_charsets_for_string_result(DTCollation &c, const char *name, Item **items, uint nitems, int item_sep=1)
Definition: item.h:4051
bool(Item::* Item_analyzer)(uchar **argp)
Definition: item.h:718
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
bool agg_item_charsets_for_comparison(DTCollation &c, const char *name, Item **items, uint nitems, int item_sep=1)
Definition: item.h:4058
bool check_reserved_words(const char *name)
Definition: item_func.cc:165
void report_conversion_error(const CHARSET_INFO *to_cs, const char *from, size_t from_length, const CHARSET_INFO *from_cs)
Definition: item_func.cc:173
Item_field * get_gc_for_expr(const Item *func, Field *fld, Item_result type, Field **found=nullptr)
Return new Item_field if given expression matches GC.
Definition: item_func.cc:1074
bool is_function_of_type(const Item *item, Item_func::Functype type)
Checks if "item" is a function of the specified type.
Definition: item_func.cc:1048
bool simplify_string_args(THD *thd, const DTCollation &c, Item **items, uint nitems)
Simplify the string arguments to a function, if possible.
Definition: item_func.cc:197
void unsupported_json_comparison(size_t arg_count, Item **args, const char *msg)
Go through the arguments of a function and check if any of them are JSON.
Definition: item_func.cc:1628
bool eval_const_cond(THD *thd, Item *cond, bool *value)
Evaluate a constant condition, represented by an Item tree.
Definition: item_func.cc:314
enum_field_types agg_field_type(Item **items, uint nitems)
Aggregates field types from the array of items.
Definition: item_cmpfunc.cc:181
void item_func_sleep_free()
Definition: item_func.cc:5876
void mysql_ull_set_explicit_lock_duration(THD *thd)
Set explicit duration for metadata locks corresponding to user level locks to protect them from being...
Definition: item_func.cc:5344
bool reject_geometry_args(uint arg_count, Item **args, Item_result_field *me)
Definition: item_func.cc:1592
double my_double_round(double value, longlong dec, bool dec_unsigned, bool truncate)
Definition: item_func.cc:3496
String * eval_string_arg_noinline(const CHARSET_INFO *to_cs, Item *arg, String *buffer)
Evaluate an argument string and return it in the desired character set.
Definition: item_func.cc:264
String * eval_string_arg(const CHARSET_INFO *to_cs, Item *arg, String *buffer)
Definition: item_func.h:95
void item_func_sleep_init()
Definition: item_func.cc:5866
void mysql_ull_cleanup(THD *thd)
Release all user level locks for this THD.
Definition: item_func.cc:5326
void retrieve_tablespace_statistics(THD *thd, Item **args, bool *null_value)
Retrieve tablespace statistics from SE.
Definition: item_func.cc:9663
bool volatile mqh_used
Definition: mysqld.cc:1304
Item * get_system_variable(Parse_context *pc, enum_var_type scope, const LEX_CSTRING &prefix, const LEX_CSTRING &suffix, bool unsafe_for_replication)
Create new Item_func_get_system_var object.
Definition: item_func.cc:8027
bool contains_function_of_type(Item *item, Item_func::Functype type)
Checks if "item" contains a function of the specified type.
Definition: item_func.cc:1053
void uuid_short_init()
Definition: item_func.cc:8593
A better implementation of the UNIX ctype(3) library.
MYSQL_STRINGS_EXPORT CHARSET_INFO my_charset_bin
Definition: ctype-bin.cc:509
int64_t my_strntoll(const CHARSET_INFO *cs, const char *str, size_t length, int base, const char **end, int *err)
Definition: m_ctype.h:749
double my_strntod(const CHARSET_INFO *cs, const char *str, size_t length, const char **end, int *err)
Definition: m_ctype.h:761
bool my_charset_same(const CHARSET_INFO *cs1, const CHARSET_INFO *cs2)
Definition: m_ctype.h:516
This file follows Google coding style, except for the name MEM_ROOT (which is kept for historical rea...
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1141
Header for compiler-dependent features.
#define SUPPRESS_UBSAN
Definition: my_compiler.h:123
#define DBUG_TRACE
Definition: my_dbug.h:146
int str2my_decimal(uint mask, const char *from, size_t length, const CHARSET_INFO *charset, my_decimal *decimal_value)
Definition: my_decimal.cc:258
It is interface module to fixed precision decimals library.
int double2my_decimal(uint mask, double val, my_decimal *d)
Definition: my_decimal.h:354
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
void my_free(void *ptr)
Frees the memory pointed by the ptr.
Definition: my_memory.cc:81
Some macros for dealing with pointer arithmetic, e.g., aligning of buffers to a given size.
#define ALIGN_SIZE(A)
Definition: my_pointer_arithmetic.h:36
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
#define MAX_BIGINT_WIDTH
Max width for a LONGLONG.
Definition: mysql_com.h:902
Time declarations shared between the server and client API: you should not add anything to this heade...
thread_local MEM_ROOT ** THR_MALLOC
Definition: mysqld.cc:1557
static bool replace
Definition: mysqlimport.cc:70
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1081
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
std::string join(Container cont, const std::string &delim)
join elements of an container into a string separated by a delimiter.
Definition: string.h:151
mutable_buffer buffer(void *p, size_t n) noexcept
Definition: buffer.h:418
Cursor end()
A past-the-end Cursor.
Definition: rules_table_service.cc:192
const char * db_name
Definition: rules_table_service.cc:55
std::map< Key, Value, Compare, ut::allocator< std::pair< const Key, Value > > > map
Specialization of map which uses ut_allocator.
Definition: ut0new.h:2892
std::list< T, ut::allocator< T > > list
Specialization of list which uses ut_allocator.
Definition: ut0new.h:2878
required string type
Definition: replication_group_member_actions.proto:34
"public" interface to sys_var - server configuration variables.
enum_var_type
Definition: set_var.h:91
#define HA_CAN_FULLTEXT_EXT
Definition: handler.h:424
File containing constants that can be used throughout the server.
constexpr const table_map RAND_TABLE_BIT
Definition: sql_const.h:112
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
Our own string classes, used pervasively throughout the executor.
case opt name
Definition: sslopt-case.h:29
Definition: m_ctype.h:423
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
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
Definition: ft_global.h:77
Definition: ft_global.h:72
struct _ft_vft * please
Definition: ft_global.h:73
< Argument object to change_context_processor
Definition: item.h:4274
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:83
T * ArrayAlloc(size_t num, Args... args)
Allocate 'num' objects of type T, and initialize them to a default value that is created by passing t...
Definition: my_alloc.h:180
Definition: mysql_lex_string.h:40
Definition: mysql_lex_string.h:35
Definition: mysql_time.h:82
Definition: my_bitmap.h:43
Bison "location" class.
Definition: parse_location.h:43
Environment data for the contextualization phase.
Definition: parse_tree_node_base.h:420
handler * file
Definition: table.h:1408
Definition: completion_hash.h:35
void(* close_search)(FT_INFO *)
Definition: ft_global.h:51
Definition: mysql_com.h:1109
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
#define array_elements(A)
Definition: validate_password_imp.cc:48