25#ifndef ITEM_STRFUNC_INCLUDED
26#define ITEM_STRFUNC_INCLUDED
192 const char *
func_name()
const override {
return "md5"; }
200 const char *
func_name()
const override {
return "sha"; }
209 const char *
func_name()
const override {
return "sha2"; }
219 const char *
func_name()
const override {
return "to_base64"; }
227 const char *
func_name()
const override {
return "statement_digest"; }
230 pointer_cast<Check_function_as_value_generator_parameters *>(
249 const char *
func_name()
const override {
return "statement_digest_text"; }
259 pointer_cast<Check_function_as_value_generator_parameters *>(
277 const char *
func_name()
const override {
return "from_base64"; }
300 const char *
func_name()
const override {
return "aes_encrypt"; }
322 const char *
func_name()
const override {
return "aes_decrypt"; }
338 const char *
func_name()
const override {
return "random_bytes"; }
355 const char *
func_name()
const override {
return "concat"; }
371 const char *
func_name()
const override {
return "concat_ws"; }
383 const char *
func_name()
const override {
return "reverse"; }
396 const char *
func_name()
const override {
return "replace"; }
410 const char *
func_name()
const override {
return "insert"; }
427 const char *
func_name()
const override {
return "lower"; }
434 const char *
func_name()
const override {
return "upper"; }
445 const char *
func_name()
const override {
return "left"; }
456 const char *
func_name()
const override {
return "right"; }
470 :
super(pos, a, b, c) {}
474 const char *
func_name()
const override {
return "substr"; }
485 const char *
func_name()
const override {
return "substring_index"; }
599 pointer_cast<Check_function_as_value_generator_parameters *>(
621 const char *
func_name()
const override {
return "database"; }
652 pointer_cast<Check_function_as_value_generator_parameters *>(
667 const char *
func_name()
const override {
return "user"; }
700 const char *
func_name()
const override {
return "current_user"; }
716 const char *
func_name()
const override {
return "soundex"; }
727 const char *
func_name()
const override {
return "elt"; }
742 const char *
func_name()
const override {
return "make_set"; }
761 const char *
func_name()
const override {
return "format"; }
785 const char *
func_name()
const override {
return "char"; }
801 const char *
func_name()
const override {
return "repeat"; }
809 const char *
func_name()
const override {
return "space"; }
820 const char *
func_name()
const override {
return "rpad"; }
831 const char *
func_name()
const override {
return "lpad"; }
845 const char *
func_name()
const override {
return "uuid_to_bin"; }
859 const char *
func_name()
const override {
return "bin_to_uuid"; }
868 const char *
func_name()
const override {
return "is_uuid"; }
883 const char *
func_name()
const override {
return "conv"; }
893 const char *
func_name()
const override {
return "hex"; }
906 const char *
func_name()
const override {
return "unhex"; }
937 const char *
func_name()
const override {
return "like_range_min"; }
944 const char *
func_name()
const override {
return "like_range_max"; }
1030 const char *
func_name()
const override {
return "cast_as_char"; }
1045 const char *
func_name()
const override {
return "load_file"; }
1059 pointer_cast<Check_function_as_value_generator_parameters *>(
1077 const char *
func_name()
const override {
return "export_set"; }
1098 bool cache_if_const)
1102 const char *
func_name()
const override {
return "convert"; }
1122 const char *
func_name()
const override {
return "collate"; }
1145 const char *
func_name()
const override {
return "charset"; }
1159 const char *
func_name()
const override {
return "collation"; }
1180 uint num_codepoints_arg, uint flags_arg,
1181 bool as_binary_arg =
false)
1190 const char *
func_name()
const override {
return "weight_string"; }
1220 const char *
func_name()
const override {
return "uncompressed_length"; }
1236 const char *
func_name()
const override {
return "compress"; }
1246 const char *
func_name()
const override {
return "to_vector"; }
1261 const char *
func_name()
const override {
return "from_vector"; }
1277 const char *
func_name()
const override {
return "uncompress"; }
1297 pointer_cast<Check_function_as_value_generator_parameters *>(
1312 const char *
func_name()
const override {
return "current_role"; }
1352 const char *
func_name()
const override {
return "roles_graphml"; }
1392 const char *
func_name()
const override {
return "get_dd_column_privileges"; }
1413 const char *
func_name()
const override {
return "get_dd_create_options"; }
1434 const char *
func_name()
const override {
return "get_dd_schema_options"; }
1459 return "internal_get_comment_or_error";
1482 return "get_dd_tablespace_private_data";
1504 const char *
func_name()
const override {
return "get_dd_index_private_data"; }
1526 return "internal_get_partition_nodegroup";
1549 const char *
func_name()
const override {
return "internal_tablespace_type"; }
1572 return "internal_tablespace_logfile_group_name";
1596 return "internal_tablespace_status";
1619 return "internal_tablespace_row_format";
1642 const char *
func_name()
const override {
return "internal_tablespace_extra"; }
1658 const char *
func_name()
const override {
return "convert_cpu_id_mask"; }
1677 const char *
func_name()
const override {
return "get_dd_property_key_value"; }
1696 const char *
func_name()
const override {
return "remove_dd_property_key"; }
1718 return "convert_interval_to_user_interval";
1738 const char *
func_name()
const override {
return "internal_get_username"; }
1757 const char *
func_name()
const override {
return "internal_get_hostname"; }
1777 return "internal_get_enabled_role_json";
1798 return "internal_get_mandatory_roles_json";
1821 return "internal_get_dd_column_extra";
Kerberos Client Authentication nullptr
Definition: auth_kerberos_client_plugin.cc:251
void set(const DTCollation &dt)
Definition: item.h:205
void set_repertoire(uint repertoire_arg)
Definition: item.h:231
const CHARSET_INFO * collation
Definition: item.h:187
static const uint32 max_dimensions
Definition: field.h:3948
Definition: item_cmpfunc.h:294
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_cmpfunc.h:328
The following types of conversions are considered safe:
Definition: item_strfunc.h:955
const CHARSET_INFO * m_cast_cs
The character set we are converting to.
Definition: item_strfunc.h:960
bool m_safe
Definition: item_strfunc.h:969
bool m_charset_conversion
If true, conversion is needed so do it, else allow string copy.
Definition: item_strfunc.h:958
const CHARSET_INFO * m_from_cs
The character set we are converting from.
Definition: item_strfunc.h:962
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:3585
Item_charset_conversion(const POS &pos, Item *a, const CHARSET_INFO *cs_arg)
Definition: item_strfunc.h:1007
bool m_use_cached_value
Marks whether the underlying Item is constant and may be cached.
Definition: item_strfunc.h:965
String * val_str(String *) override
Definition: item_strfunc.cc:3476
void add_json_info(Json_object *obj) override
Add all the node-specific json fields.
Definition: item_strfunc.h:982
longlong m_cast_length
Length argument value, if any given.
Definition: item_strfunc.h:967
String m_tmp_value
Definition: item_strfunc.h:963
Item_charset_conversion(THD *thd, Item *a, const CHARSET_INFO *cs_arg, bool cache_if_const)
Definition: item_strfunc.h:988
uint32 compute_max_char_length()
Helper for CAST and CONVERT type resolution: common logic to compute the maximum numbers of character...
Definition: item_strfunc.cc:3554
Definition: item_strfunc.h:303
Item_func_aes_decrypt(const POS &pos, Item *a, Item *b, Item *c, Item *d)
Definition: item_strfunc.h:311
Item_func_aes_decrypt(const POS &pos, Item *a, Item *b, Item *c, Item *d, Item *e)
Definition: item_strfunc.h:313
String * val_str(String *) override
Definition: item_strfunc.cc:662
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_strfunc.cc:652
Item_func_aes_decrypt(const POS &pos, Item *a, Item *b, Item *c)
Definition: item_strfunc.h:309
Item_func_aes_decrypt(const POS &pos, Item *a, Item *b)
Definition: item_strfunc.h:307
Item_str_func super
Definition: item_strfunc.h:304
const char * func_name() const override
Definition: item_strfunc.h:322
Item_func_aes_decrypt(const POS &pos, Item *a, Item *b, Item *c, Item *d, Item *e, Item *f)
Definition: item_strfunc.h:316
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:709
Definition: item_strfunc.h:280
Item_func_aes_encrypt(const POS &pos, Item *a, Item *b, Item *c, Item *d, Item *e, Item *f)
Definition: item_strfunc.h:294
String * val_str(String *) override
Definition: item_strfunc.cc:588
const char * func_name() const override
Definition: item_strfunc.h:300
Item_func_aes_encrypt(const POS &pos, Item *a, Item *b, Item *c)
Definition: item_strfunc.h:287
Item_func_aes_encrypt(const POS &pos, Item *a, Item *b)
Definition: item_strfunc.h:285
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_strfunc.cc:578
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:642
Item_func_aes_encrypt(const POS &pos, Item *a, Item *b, Item *c, Item *d)
Definition: item_strfunc.h:289
String tmp_value
Definition: item_strfunc.h:281
Item_str_func super
Definition: item_strfunc.h:282
Item_func_aes_encrypt(const POS &pos, Item *a, Item *b, Item *c, Item *d, Item *e)
Definition: item_strfunc.h:291
Definition: item_strfunc.h:848
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:2845
String * val_str_ascii(String *) override
Definition: item_strfunc.cc:2855
Item_func_bin_to_uuid(const POS &pos, Item *arg1, Item *arg2)
Definition: item_strfunc.h:855
Item_func_bin_to_uuid(const POS &pos, Item *arg1)
Definition: item_strfunc.h:853
const char * func_name() const override
Definition: item_strfunc.h:859
char m_text_buf[mysql::gtid::Uuid::TEXT_LENGTH+1]
Buffer to store the text result.
Definition: item_strfunc.h:850
Definition: item_strfunc.h:766
Item_func_char(const POS &pos, PT_item_list *list)
Definition: item_strfunc.h:768
void add_json_info(Json_object *obj) override
Add all the node-specific json fields.
Definition: item_strfunc.h:786
Item_func_char(const POS &pos, PT_item_list *list, const CHARSET_INFO *cs)
Definition: item_strfunc.h:773
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:779
String * val_str(String *) override
Definition: item_strfunc.cc:2489
const char * func_name() const override
Definition: item_strfunc.h:785
Definition: item_strfunc.h:1139
Item_func_charset(const POS &pos, Item *a)
Definition: item_strfunc.h:1141
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1146
String * val_str(String *) override
Definition: item_strfunc.cc:3153
const char * func_name() const override
Definition: item_strfunc.h:1145
Definition: item_strfunc.h:1153
String * val_str(String *) override
Definition: item_strfunc.cc:3167
const char * func_name() const override
Definition: item_strfunc.h:1159
Item_func_collation(const POS &pos, Item *a)
Definition: item_strfunc.h:1155
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1160
Definition: item_strfunc.h:1230
String buffer
Definition: item_strfunc.h:1231
Item_func_compress(const POS &pos, Item *a)
Definition: item_strfunc.h:1234
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:4058
String * val_str(String *str) override
Definition: item_strfunc.cc:4066
const char * func_name() const override
Definition: item_strfunc.h:1236
Definition: item_strfunc.h:358
const char * func_name() const override
Definition: item_strfunc.h:371
Item_func_concat_ws(const POS &pos, PT_item_list *opt_list)
Definition: item_strfunc.h:365
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:1182
String tmp_value
Definition: item_strfunc.h:359
String * val_str(String *) override
concat with separator.
Definition: item_strfunc.cc:1149
Item_func_concat_ws(mem_root_deque< Item * > *list)
Definition: item_strfunc.h:361
Definition: item_strfunc.h:344
String * val_str(String *) override
Concatenate args with the following premises: If only one arg (which is ok), return value of arg;.
Definition: item_strfunc.cc:1099
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:1124
Item_func_concat(const POS &pos, Item *a, Item *b)
Definition: item_strfunc.h:350
Item_func_concat(Item *a, Item *b)
Definition: item_strfunc.h:349
Item_func_concat(const POS &pos, PT_item_list *opt_list)
Definition: item_strfunc.h:347
const char * func_name() const override
Definition: item_strfunc.h:355
String tmp_value
Definition: item_strfunc.h:345
Definition: item_strfunc.h:1090
bool eq_specific(const Item *item) const override
Provide a more specific equality check for a function.
Definition: item_strfunc.cc:3061
Item_func_conv_charset(const POS &pos, Item *a, const CHARSET_INFO *cs)
Definition: item_strfunc.h:1092
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item_strfunc.cc:3067
const char * func_name() const override
Definition: item_strfunc.h:1102
Item_func_conv_charset(THD *thd, Item *a, const CHARSET_INFO *cs, bool cache_if_const)
Definition: item_strfunc.h:1097
Definition: item_strfunc.h:877
String * val_str(String *) override
Definition: item_strfunc.cc:2990
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:2982
static constexpr uint32_t CONV_MAX_LENGTH
Definition: item_strfunc.h:880
Item_func_conv(const POS &pos, Item *a, Item *b, Item *c)
Definition: item_strfunc.h:881
const char * func_name() const override
Definition: item_strfunc.h:883
Definition: item_strfunc.h:1647
const char * func_name() const override
Definition: item_strfunc.h:1658
Item_func_convert_cpu_id_mask(const POS &pos, Item *list)
Definition: item_strfunc.h:1649
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1652
String * val_str(String *) override
Definition: item_strfunc.cc:5134
Definition: item_strfunc.h:1701
const char * func_name() const override
Definition: item_strfunc.h:1717
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1707
enum Functype functype() const override
Definition: item_strfunc.h:1706
String * val_str(String *) override
Definition: item_strfunc.cc:5348
Item_func_convert_interval_to_user_interval(const POS &pos, Item *a, Item *b)
Definition: item_strfunc.h:1703
Definition: item_strfunc.h:1198
const char * func_name() const override
Definition: item_strfunc.h:1205
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1206
Item_func_crc32(const POS &pos, Item *a)
Definition: item_strfunc.h:1202
longlong val_int() override
Definition: item_strfunc.cc:4046
String value
Definition: item_strfunc.h:1199
Definition: item_strfunc.h:1305
const Name_string fully_qualified_func_name() const override
Definition: item_strfunc.h:1319
void set_current_role(THD *thd)
Definition: item_strfunc.cc:5190
Item_func_current_role()
Definition: item_strfunc.h:1309
const char * func_name() const override
Definition: item_strfunc.h:1312
bool value_cache_set
a flag whether value_cache is set or not
Definition: item_strfunc.h:1326
Item_func_sysconst super
Definition: item_strfunc.h:1306
Item_func_current_role(const POS &pos)
Definition: item_strfunc.h:1310
String * val_str(String *) override
Definition: item_strfunc.cc:5185
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1315
String value_cache
Cache for the result value.
Definition: item_strfunc.h:1334
void cleanup() override
Called for every Item after use (preparation and execution).
Definition: item_strfunc.cc:5177
Definition: item_strfunc.h:675
Item_func_user super
Definition: item_strfunc.h:676
bool resolve_type(THD *) override
Overridden to copy definer priv_user and priv_host.
Definition: item_strfunc.cc:1981
Item_func_current_user(const POS &pos)
Definition: item_strfunc.h:697
const Name_string fully_qualified_func_name() const override
Definition: item_strfunc.h:701
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_strfunc.cc:2058
const char * func_name() const override
Definition: item_strfunc.h:700
LEX_CSTRING m_definer_priv_host
Definition: item_strfunc.h:688
type_conversion_status save_in_field_inner(Field *field, bool) override
We override Item::save_in_field_inner() for reasons explained in the comment of that function - we ne...
Definition: item_strfunc.cc:1975
LEX_CSTRING m_definer_priv_user
Copied from m_name_resolution_ctx in fix_fields if the definer Security_context is set in Name_resolu...
Definition: item_strfunc.h:687
String * val_str(String *) override
Definition: item_strfunc.cc:2006
Name_resolution_context * m_name_resolution_ctx
Used to pass a security context to the resolver functions.
Definition: item_strfunc.h:683
Definition: item_strfunc.h:607
Item_func_sysconst super
Definition: item_strfunc.h:608
String * val_str(String *) override
Definition: item_strfunc.cc:1945
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:616
const Name_string fully_qualified_func_name() const override
Definition: item_strfunc.h:622
Item_func_database(const POS &pos)
Definition: item_strfunc.h:611
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_strfunc.cc:1937
const char * func_name() const override
Definition: item_strfunc.h:621
Definition: item_strfunc.h:719
const char * func_name() const override
Definition: item_strfunc.h:727
longlong val_int() override
Definition: item_strfunc.cc:2388
String * val_str(String *str) override
Definition: item_strfunc.cc:2401
double val_real() override
Definition: item_strfunc.cc:2376
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:2357
Item_func_elt(const POS &pos, PT_item_list *opt_list)
Definition: item_strfunc.h:721
Definition: item_strfunc.h:1066
Item_func_export_set(const POS &pos, Item *a, Item *b, Item *c)
Definition: item_strfunc.h:1068
Item_func_export_set(const POS &pos, Item *a, Item *b, Item *c, Item *d, Item *e)
Definition: item_strfunc.h:1072
Item_func_export_set(const POS &pos, Item *a, Item *b, Item *c, Item *d)
Definition: item_strfunc.h:1070
String * val_str(String *str) override
Definition: item_strfunc.cc:3711
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:3780
const char * func_name() const override
Definition: item_strfunc.h:1077
Definition: item_strfunc.h:270
String tmp_value
Definition: item_strfunc.h:271
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:807
const char * func_name() const override
Definition: item_strfunc.h:277
String * val_str(String *) override
Definition: item_strfunc.cc:821
Item_func_from_base64(const POS &pos, Item *a)
Definition: item_strfunc.h:274
Definition: item_strfunc.h:1250
Item_func_from_vector(const POS &pos, Item *a)
Definition: item_strfunc.h:1257
const char * func_name() const override
Definition: item_strfunc.h:1261
String buffer
Definition: item_strfunc.h:1254
static const uint32 per_value_chars
Definition: item_strfunc.h:1251
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:4158
static const uint32 max_output_bytes
Definition: item_strfunc.h:1252
String * val_str(String *str) override
Definition: item_strfunc.cc:4173
Definition: item_strfunc.h:1373
Item_func_get_dd_column_privileges(const POS &pos, Item *a, Item *b, Item *c)
Definition: item_strfunc.h:1375
const char * func_name() const override
Definition: item_strfunc.h:1392
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1379
enum Functype functype() const override
Definition: item_strfunc.h:1378
String * val_str(String *) override
This function prepares string with list of column privileges.
Definition: item_strfunc.cc:4432
Definition: item_strfunc.h:1397
enum Functype functype() const override
Definition: item_strfunc.h:1402
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1403
String * val_str(String *) override
This function prepares string representing create_options for table.
Definition: item_strfunc.cc:4504
Item_func_get_dd_create_options(const POS &pos, Item *a, Item *b, Item *c)
Definition: item_strfunc.h:1399
const char * func_name() const override
Definition: item_strfunc.h:1413
Definition: item_strfunc.h:1488
const char * func_name() const override
Definition: item_strfunc.h:1504
Item_func_get_dd_index_private_data(const POS &pos, Item *a, Item *b)
Definition: item_strfunc.h:1490
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1494
String * val_str(String *) override
This function prepares string representing se_private_data for index.
Definition: item_strfunc.cc:5049
enum Functype functype() const override
Definition: item_strfunc.h:1493
Definition: item_strfunc.h:1663
String * val_str(String *) override
This function prepares string representing value stored at key supplied.
Definition: item_strfunc.cc:5245
enum Functype functype() const override
Definition: item_strfunc.h:1668
Item_func_get_dd_property_key_value(const POS &pos, Item *a, Item *b)
Definition: item_strfunc.h:1665
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1669
const char * func_name() const override
Definition: item_strfunc.h:1677
Definition: item_strfunc.h:1418
String * val_str(String *) override
This function prepares string representing options for a schema.
Definition: item_strfunc.cc:4705
const char * func_name() const override
Definition: item_strfunc.h:1434
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1424
enum Functype functype() const override
Definition: item_strfunc.h:1423
Item_func_get_dd_schema_options(const POS &pos, Item *a)
Definition: item_strfunc.h:1420
Definition: item_strfunc.h:1465
String * val_str(String *) override
This function prepares string representing se_private_data for tablespace.
Definition: item_strfunc.cc:4983
const char * func_name() const override
Definition: item_strfunc.h:1481
enum Functype functype() const override
Definition: item_strfunc.h:1470
Item_func_get_dd_tablespace_private_data(const POS &pos, Item *a, Item *b)
Definition: item_strfunc.h:1467
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1471
Definition: item_strfunc.h:1509
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1515
String * val_str(String *) override
Definition: item_strfunc.cc:4830
enum Functype functype() const override
Definition: item_strfunc.h:1514
Item_func_get_partition_nodegroup(const POS &pos, Item *a)
Definition: item_strfunc.h:1511
const char * func_name() const override
Definition: item_strfunc.h:1525
Definition: item_strfunc.h:888
String tmp_value
Definition: item_strfunc.h:889
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:3333
Item_func_hex(const POS &pos, Item *a)
Definition: item_strfunc.h:892
String * val_str_ascii(String *) override
Definition: item_strfunc.cc:3345
const char * func_name() const override
Definition: item_strfunc.h:893
Definition: item_strfunc.h:399
String * val_str(String *) override
Definition: item_strfunc.cc:1343
const char * func_name() const override
Definition: item_strfunc.h:410
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:1395
String tmp_value_res
Holds result in case we need to allocate our own result buffer.
Definition: item_strfunc.h:402
Item_func_insert(const POS &pos, Item *org, Item *start, Item *length, Item *new_str)
Definition: item_strfunc.h:405
String tmp_value
Definition: item_strfunc.h:400
Definition: item_strfunc.h:1804
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1810
String * val_str(String *) override
This function prepares string representing EXTRA column for I_S.COLUMNS.
Definition: item_strfunc.cc:5525
const char * func_name() const override
Definition: item_strfunc.h:1820
Item_func_internal_get_dd_column_extra(const POS &pos, PT_item_list *list)
Definition: item_strfunc.h:1806
enum Functype functype() const override
Definition: item_strfunc.h:1809
Definition: item_strfunc.h:1762
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1768
enum Functype functype() const override
Definition: item_strfunc.h:1767
Item_func_internal_get_enabled_role_json(const POS &pos)
Definition: item_strfunc.h:1764
String * val_str(String *) override
Definition: item_strfunc.cc:5444
const char * func_name() const override
Definition: item_strfunc.h:1776
Definition: item_strfunc.h:1743
Item_func_internal_get_hostname(const POS &pos, PT_item_list *list)
Definition: item_strfunc.h:1745
enum Functype functype() const override
Definition: item_strfunc.h:1748
const char * func_name() const override
Definition: item_strfunc.h:1757
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1749
String * val_str(String *) override
Definition: item_strfunc.cc:5409
Definition: item_strfunc.h:1783
const char * func_name() const override
Definition: item_strfunc.h:1797
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1789
enum Functype functype() const override
Definition: item_strfunc.h:1788
Item_func_internal_get_mandatory_roles_json(const POS &pos)
Definition: item_strfunc.h:1785
String * val_str(String *) override
Definition: item_strfunc.cc:5476
Definition: item_strfunc.h:1724
String * val_str(String *) override
Definition: item_strfunc.cc:5372
Item_func_internal_get_username(const POS &pos, PT_item_list *list)
Definition: item_strfunc.h:1726
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1730
enum Functype functype() const override
Definition: item_strfunc.h:1729
const char * func_name() const override
Definition: item_strfunc.h:1738
Definition: item_strfunc.h:1554
const char * func_name() const override
Definition: item_strfunc.h:1571
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1561
String * val_str(String *) override
Definition: item_strfunc.cc:4887
Item_func_internal_tablespace_logfile_group_name(const POS &pos, Item *a, Item *b, Item *c, Item *d)
Definition: item_strfunc.h:1556
enum Functype functype() const override
Definition: item_strfunc.h:1560
Definition: item_strfunc.h:1578
Item_func_internal_tablespace_status(const POS &pos, Item *a, Item *b, Item *c, Item *d)
Definition: item_strfunc.h:1580
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1585
String * val_str(String *) override
Definition: item_strfunc.cc:4910
enum Functype functype() const override
Definition: item_strfunc.h:1584
const char * func_name() const override
Definition: item_strfunc.h:1595
Definition: item_strfunc.h:1532
enum Functype functype() const override
Definition: item_strfunc.h:1538
String * val_str(String *) override
Definition: item_strfunc.cc:4870
const char * func_name() const override
Definition: item_strfunc.h:1549
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1539
Item_func_internal_tablespace_type(const POS &pos, Item *a, Item *b, Item *c, Item *d)
Definition: item_strfunc.h:1534
Definition: item_strfunc.h:862
const char * func_name() const override
Definition: item_strfunc.h:868
longlong val_int() override
Definition: item_strfunc.cc:2895
Item_func_is_uuid(const POS &pos, Item *a)
Definition: item_strfunc.h:866
Item_bool_func super
Definition: item_strfunc.h:863
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:869
Definition: item_strfunc.h:438
Item_func_left(const POS &pos, Item *a, Item *b)
Definition: item_strfunc.h:442
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:1515
String tmp_value
Definition: item_strfunc.h:439
String * val_str(String *) override
Definition: item_strfunc.cc:1468
const char * func_name() const override
Definition: item_strfunc.h:445
Definition: item_strfunc.h:940
const char * func_name() const override
Definition: item_strfunc.h:944
Item_func_like_range_max(const POS &pos, Item *a, Item *b)
Definition: item_strfunc.h:942
Definition: item_strfunc.h:933
const char * func_name() const override
Definition: item_strfunc.h:937
Item_func_like_range_min(const POS &pos, Item *a, Item *b)
Definition: item_strfunc.h:935
Definition: item_strfunc.h:912
String max_str
Definition: item_strfunc.h:915
const bool is_min
Definition: item_strfunc.h:916
Item_func_like_range(const POS &pos, Item *a, Item *b, bool is_min_arg)
Definition: item_strfunc.h:919
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:924
String min_str
Definition: item_strfunc.h:914
String * val_str(String *) override
Definition: item_strfunc.cc:3420
Definition: item_strfunc.h:424
const char * func_name() const override
Definition: item_strfunc.h:427
Item_func_lower(const POS &pos, Item *item)
Definition: item_strfunc.h:426
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:1444
Definition: item_strfunc.h:823
String * val_str(String *) override
Definition: item_strfunc.cc:2909
Item_func_lpad(const POS &pos, Item *arg1, Item *arg2, Item *arg3)
Definition: item_strfunc.h:827
String tmp_value
Definition: item_strfunc.h:824
String lpad_str
Definition: item_strfunc.h:824
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:2776
const char * func_name() const override
Definition: item_strfunc.h:831
Definition: item_strfunc.h:569
Item_func_ltrim(const POS &pos, Item *a)
Definition: item_strfunc.h:571
Definition: item_strfunc.h:730
String * val_str(String *str) override
Definition: item_strfunc.cc:2441
Item_str_func super
Definition: item_strfunc.h:731
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item_strfunc.cc:2478
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:2425
String tmp_str
Definition: item_strfunc.h:733
Item_func_make_set(const POS &pos, PT_item_list *opt_list)
Definition: item_strfunc.h:736
bool fix_fields(THD *thd, Item **ref) override
Definition: item_strfunc.cc:2421
const char * func_name() const override
Definition: item_strfunc.h:742
Definition: item_strfunc.h:185
const char * func_name() const override
Definition: item_strfunc.h:192
Item_func_md5(const POS &pos, Item *a)
Definition: item_strfunc.h:189
String tmp_value
Definition: item_strfunc.h:186
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:236
String * val_str_ascii(String *) override
Definition: item_strfunc.cc:193
Definition: item_strfunc.h:1080
String * val_str(String *) override
QUOTE() function returns argument string in single quotes suitable for using in a SQL statement.
Definition: item_strfunc.cc:3841
Item_func_quote(const POS &pos, Item *a)
Definition: item_strfunc.h:1084
String tmp_value
Definition: item_strfunc.h:1081
const char * func_name() const override
Definition: item_strfunc.h:1085
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:3800
Definition: item_strfunc.h:325
table_map get_initial_pseudo_tables() const override
Returns the pseudo tables depended upon in order to evaluate this function expression.
Definition: item_strfunc.h:339
static const ulonglong MAX_RANDOM_BYTES_BUFFER
limitation from the SSL library
Definition: item_strfunc.h:329
Item_str_func super
Definition: item_strfunc.h:326
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_strfunc.cc:717
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:734
Item_func_random_bytes(const POS &pos, Item *a)
Definition: item_strfunc.h:332
String * val_str(String *a) override
Definition: item_strfunc.cc:741
const char * func_name() const override
Definition: item_strfunc.h:338
Definition: item_strfunc.h:1682
Item_func_remove_dd_property_key(const POS &pos, Item *a, Item *b)
Definition: item_strfunc.h:1684
const char * func_name() const override
Definition: item_strfunc.h:1696
String * val_str(String *) override
This function removes a key value from given property string.
Definition: item_strfunc.cc:5302
enum Functype functype() const override
Definition: item_strfunc.h:1687
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1688
Definition: item_strfunc.h:793
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:2539
String * val_str(String *) override
Item_func_repeat::str is carefully written to avoid reallocs as much as possible at the cost of a loc...
Definition: item_strfunc.cc:2573
String tmp_value
Definition: item_strfunc.h:794
Item_func_repeat(const POS &pos, Item *arg1, Item *arg2)
Definition: item_strfunc.h:797
const char * func_name() const override
Definition: item_strfunc.h:801
Definition: item_strfunc.h:386
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:1321
String * val_str(String *) override
Replace all occurrences of string2 in string1 with string3.
Definition: item_strfunc.cc:1259
const char * func_name() const override
Definition: item_strfunc.h:396
String tmp_value
Definition: item_strfunc.h:387
String tmp_value_res
Holds result in case we need to allocate our own result buffer.
Definition: item_strfunc.h:389
String tmp_value2
Definition: item_strfunc.h:387
Item_func_replace(const POS &pos, Item *org, Item *find, Item *replace)
Definition: item_strfunc.h:392
Definition: item_strfunc.h:374
Item_func_reverse(Item *a)
Definition: item_strfunc.h:378
String * val_str(String *) override
Definition: item_strfunc.cc:1204
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:1246
String tmp_value
Definition: item_strfunc.h:375
Item_func_reverse(const POS &pos, Item *a)
Definition: item_strfunc.h:379
const char * func_name() const override
Definition: item_strfunc.h:383
Definition: item_strfunc.h:448
Item_func_right(const POS &pos, Item *a, Item *b)
Definition: item_strfunc.h:452
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:1547
const char * func_name() const override
Definition: item_strfunc.h:456
String * val_str(String *) override
Definition: item_strfunc.cc:1525
String tmp_value
Definition: item_strfunc.h:449
Definition: item_strfunc.h:1337
Item_func_roles_graphml(const POS &pos)
Definition: item_strfunc.h:1342
void cleanup() override
Called for every Item after use (preparation and execution).
Definition: item_strfunc.cc:5228
String value_cache
Cache for the result value.
Definition: item_strfunc.h:1367
Item_func_sysconst super
Definition: item_strfunc.h:1338
const char * func_name() const override
Definition: item_strfunc.h:1352
Item_func_roles_graphml()
Definition: item_strfunc.h:1341
bool calculate_graphml(THD *thd)
Constructs and caches the graphml string.
Definition: item_strfunc.cc:5208
String * val_str(String *) override
Definition: item_strfunc.cc:5223
bool value_cache_set
Set to true if value_cache is set.
Definition: item_strfunc.h:1370
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1347
const Name_string fully_qualified_func_name() const override
Definition: item_strfunc.h:1354
Definition: item_strfunc.h:812
String tmp_value
Definition: item_strfunc.h:813
Item_func_rpad(const POS &pos, Item *arg1, Item *arg2, Item *arg3)
Definition: item_strfunc.h:816
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:2677
String * val_str(String *) override
Definition: item_strfunc.cc:2704
const char * func_name() const override
Definition: item_strfunc.h:820
String rpad_str
Definition: item_strfunc.h:813
Definition: item_strfunc.h:575
Item_func_rtrim(const POS &pos, Item *a)
Definition: item_strfunc.h:577
Definition: item_strfunc.h:1108
LEX_STRING collation_string
Definition: item_strfunc.h:1111
Item_field * field_for_view_update() override
Definition: item_strfunc.h:1126
bool eq_specific(const Item *item) const override
Provide a more specific equality check for a function.
Definition: item_strfunc.cc:3135
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item_strfunc.cc:3142
void add_json_info(Json_object *obj) override
Add all the node-specific json fields.
Definition: item_strfunc.h:1132
Item_func_set_collation(const POS &pos, Item *a, const LEX_STRING &collation_string_arg)
Definition: item_strfunc.h:1114
const char * func_name() const override
Definition: item_strfunc.h:1122
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:3094
enum Functype functype() const override
Definition: item_strfunc.h:1123
String * val_str(String *) override
Definition: item_strfunc.cc:3086
Item_str_func super
Definition: item_strfunc.h:1109
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_strfunc.cc:3076
Definition: item_strfunc.h:203
const char * func_name() const override
Definition: item_strfunc.h:209
String * val_str_ascii(String *) override
Definition: item_strfunc.cc:280
Item_func_sha2(const POS &pos, Item *a, Item *b)
Definition: item_strfunc.h:205
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:354
Definition: item_strfunc.h:195
const char * func_name() const override
Definition: item_strfunc.h:200
String * val_str_ascii(String *) override
Definition: item_strfunc.cc:244
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:265
Item_func_sha(const POS &pos, Item *a)
Definition: item_strfunc.h:197
Definition: item_strfunc.h:708
Item_func_soundex(const POS &pos, Item *a)
Definition: item_strfunc.h:713
String tmp_value
Definition: item_strfunc.h:709
Item_func_soundex(Item *a)
Definition: item_strfunc.h:712
String * val_str(String *) override
Definition: item_strfunc.cc:2111
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:2066
const char * func_name() const override
Definition: item_strfunc.h:716
Definition: item_strfunc.h:804
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:2617
String * val_str(String *) override
Definition: item_strfunc.cc:2649
const char * func_name() const override
Definition: item_strfunc.h:809
Item_func_space(const POS &pos, Item *arg1)
Definition: item_strfunc.h:806
Definition: item_strfunc.h:244
bool resolve_type(THD *thd) override
The type is always LONGTEXT, just like the digest_text columns in Performance Schema.
Definition: item_strfunc.cc:1059
const char * func_name() const override
Definition: item_strfunc.h:249
uchar * m_token_buffer
Definition: item_strfunc.h:267
Item_func_statement_digest_text(const POS &pos, Item *query_string)
Definition: item_strfunc.h:246
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_strfunc.h:257
String * val_str(String *) override
Definition: item_strfunc.cc:1068
Definition: item_strfunc.h:222
uchar * m_token_buffer
Definition: item_strfunc.h:241
Item_func_statement_digest(const POS &pos, Item *query_string)
Definition: item_strfunc.h:224
const char * func_name() const override
Definition: item_strfunc.h:227
String * val_str_ascii(String *) override
Implementation of the STATEMENT_DIGEST() native function.
Definition: item_strfunc.cc:1029
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:1013
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_strfunc.h:228
Definition: item_strfunc.h:477
String * val_str(String *) override
Definition: item_strfunc.cc:1657
Item_func_substr_index(const POS &pos, Item *a, Item *b, Item *c)
Definition: item_strfunc.h:481
String tmp_value
Definition: item_strfunc.h:478
const char * func_name() const override
Definition: item_strfunc.h:485
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:1646
Definition: item_strfunc.h:459
const char * func_name() const override
Definition: item_strfunc.h:474
Item_func_substr(Item *a, Item *b)
Definition: item_strfunc.h:465
Item_func_substr(Item *a, Item *b, Item *c)
Definition: item_strfunc.h:468
String tmp_value
Definition: item_strfunc.h:462
Item_func_substr(const POS &pos, Item *a, Item *b)
Definition: item_strfunc.h:466
Item_str_func super
Definition: item_strfunc.h:460
String * val_str(String *) override
Definition: item_strfunc.cc:1558
Item_func_substr(const POS &pos, Item *a, Item *b, Item *c)
Definition: item_strfunc.h:469
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:1605
Definition: item_strfunc.h:581
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_strfunc.h:597
virtual const Name_string fully_qualified_func_name() const =0
Item_func_sysconst(const POS &pos)
Definition: item_strfunc.h:588
Item_str_func super
Definition: item_strfunc.h:582
Item_func_sysconst()
Definition: item_strfunc.h:585
Definition: item_strfunc.h:212
const char * func_name() const override
Definition: item_strfunc.h:219
Item_func_to_base64(const POS &pos, Item *a)
Definition: item_strfunc.h:216
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:772
String * val_str_ascii(String *) override
Definition: item_strfunc.cc:789
String tmp_value
Definition: item_strfunc.h:213
Definition: item_strfunc.h:1240
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:4115
String * val_str(String *str) override
Definition: item_strfunc.cc:4130
String buffer
Definition: item_strfunc.h:1241
const char * func_name() const override
Definition: item_strfunc.h:1246
Item_func_to_vector(const POS &pos, Item *a)
Definition: item_strfunc.h:1244
Definition: item_strfunc.h:488
const bool m_trim_trailing
Definition: item_strfunc.h:509
bool trim_trailing() const
Definition: item_strfunc.h:541
bool trim_leading() const
Definition: item_strfunc.h:536
const char * func_name() const override
Definition: item_strfunc.h:548
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:1867
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item_strfunc.cc:1907
TRIM_MODE
Why all the trim modes in this enum? We need to maintain parsing information, so that our print() fun...
Definition: item_strfunc.h:495
@ TRIM_BOTH_DEFAULT
Definition: item_strfunc.h:496
@ TRIM_LTRIM
Definition: item_strfunc.h:500
@ TRIM_RTRIM
Definition: item_strfunc.h:501
@ TRIM_BOTH
Definition: item_strfunc.h:497
@ TRIM_LEADING
Definition: item_strfunc.h:498
@ TRIM_TRAILING
Definition: item_strfunc.h:499
Item_func_trim(Item *a, TRIM_MODE tm)
Definition: item_strfunc.h:524
Item_func_trim(Item *a, Item *b, TRIM_MODE tm)
Definition: item_strfunc.h:512
Item_func_trim(const POS &pos, Item *a, TRIM_MODE tm)
Definition: item_strfunc.h:530
String tmp_value
Definition: item_strfunc.h:505
const TRIM_MODE m_trim_mode
Definition: item_strfunc.h:507
Item_func_trim(const POS &pos, Item *a, Item *b, TRIM_MODE tm)
Definition: item_strfunc.h:518
String remove
Definition: item_strfunc.h:506
const bool m_trim_leading
Definition: item_strfunc.h:508
String * val_str(String *) override
Definition: item_strfunc.cc:1772
Definition: item_strfunc.h:1265
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1270
const char * func_name() const override
Definition: item_strfunc.h:1277
String * val_str(String *str) override
Definition: item_strfunc.cc:4205
String buffer
Definition: item_strfunc.h:1266
Item_func_uncompress(const POS &pos, Item *a)
Definition: item_strfunc.h:1269
Definition: item_strfunc.h:1214
const char * func_name() const override
Definition: item_strfunc.h:1220
Item_func_uncompressed_length(const POS &pos, Item *a)
Definition: item_strfunc.h:1218
String value
Definition: item_strfunc.h:1215
longlong val_int() override
Definition: item_strfunc.cc:4017
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1221
Definition: item_strfunc.h:898
Item_func_unhex(const POS &pos, Item *a)
Definition: item_strfunc.h:902
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:3375
String * val_str(String *) override
Convert given hex string to a binary string.
Definition: item_strfunc.cc:3388
String tmp_value
Definition: item_strfunc.h:899
const char * func_name() const override
Definition: item_strfunc.h:906
Definition: item_strfunc.h:431
Item_func_upper(const POS &pos, Item *item)
Definition: item_strfunc.h:433
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:1456
const char * func_name() const override
Definition: item_strfunc.h:434
Definition: item_strfunc.h:627
Item_func_user(const POS &pos)
Definition: item_strfunc.h:640
table_map get_initial_pseudo_tables() const override
Returns the pseudo tables depended upon in order to evaluate this function expression.
Definition: item_strfunc.h:644
const Name_string fully_qualified_func_name() const override
Definition: item_strfunc.h:668
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_strfunc.cc:2048
String * val_str(String *) override
Definition: item_strfunc.cc:1966
Item_func_sysconst super
Definition: item_strfunc.h:628
void cleanup() override
Called for every Item after use (preparation and execution).
Definition: item_strfunc.h:662
Item_func_user()
Definition: item_strfunc.h:639
const char * func_name() const override
Definition: item_strfunc.h:667
bool evaluate(const char *user, const char *host)
Evaluate user name, must be called once per execution.
Definition: item_strfunc.cc:2025
type_conversion_status save_in_field_inner(Field *field, bool) override
We override Item::save_in_field_inner() for reasons explained in the comment of that function - we ne...
Definition: item_strfunc.cc:1961
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:658
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_strfunc.h:650
bool m_evaluated
True when function value is evaluated, set to false after each execution.
Definition: item_strfunc.h:632
Definition: item_strfunc.h:834
String * val_str(String *) override
Definition: item_strfunc.cc:2813
Item_func_uuid_to_bin(const POS &pos, Item *arg1, Item *arg2)
Definition: item_strfunc.h:841
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:2804
uchar m_bin_buf[mysql::gtid::Uuid::BYTE_LENGTH]
Buffer to store the binary result.
Definition: item_strfunc.h:836
Item_func_uuid_to_bin(const POS &pos, Item *arg1)
Definition: item_strfunc.h:839
const char * func_name() const override
Definition: item_strfunc.h:845
Definition: item_strfunc.h:1281
Item_func_uuid(const POS &pos)
Definition: item_strfunc.h:1286
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_strfunc.h:1295
table_map get_initial_pseudo_tables() const override
Returns the pseudo tables depended upon in order to evaluate this function expression.
Definition: item_strfunc.h:1289
String * val_str(String *) override
Definition: item_strfunc.cc:4413
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_strfunc.cc:4298
const char * func_name() const override
Definition: item_strfunc.h:1293
Item_func_uuid()
Definition: item_strfunc.h:1285
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:4291
Item_str_func super
Definition: item_strfunc.h:1282
Definition: item_strfunc.h:1168
String * val_str(String *) override
Definition: item_strfunc.cc:3245
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.cc:3201
const char * func_name() const override
Definition: item_strfunc.h:1190
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item_strfunc.cc:3189
const uint num_codepoints
Definition: item_strfunc.h:1178
String tmp_value
Definition: item_strfunc.h:1171
Item_str_func super
Definition: item_strfunc.h:1169
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_strfunc.cc:3178
Item_field * m_field_ref
Definition: item_strfunc.h:1174
const uint result_length
Definition: item_strfunc.h:1173
bool eq_specific(const Item *item) const override
Provide a more specific equality check for a function.
Definition: item_strfunc.cc:3236
Item_func_weight_string(const POS &pos, Item *a, uint result_length_arg, uint num_codepoints_arg, uint flags_arg, bool as_binary_arg=false)
Definition: item_strfunc.h:1179
const bool as_binary
Definition: item_strfunc.h:1175
uint flags
Definition: item_strfunc.h:1172
Definition: item_func.h:100
Item ** args
Array of pointers to arguments.
Definition: item_func.h:107
bool reject_vector_args()
Definition: item_func.cc:1596
Functype
Definition: item_func.h:209
@ COLLATE_FUNC
Definition: item_func.h:256
@ DD_INTERNAL_FUNC
Definition: item_func.h:266
@ TYPECAST_FUNC
Definition: item_func.h:258
virtual const char * func_name() const =0
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:528
uint arg_count
How many arguments in 'args'.
Definition: item_func.h:130
bool null_on_null
Affects how to determine that NULL argument implies a NULL function return.
Definition: item_func.h:186
Definition: item_func.h:1020
Definition: item_strfunc.h:1035
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_strfunc.cc:3638
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:1049
String tmp_value
Definition: item_strfunc.h:1038
Item_str_func super
Definition: item_strfunc.h:1036
String * val_str(String *) override
Definition: item_strfunc.cc:3646
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_strfunc.h:1057
Item_load_file(const POS &pos, Item *a)
Definition: item_strfunc.h:1041
const char * func_name() const override
Definition: item_strfunc.h:1045
table_map get_initial_pseudo_tables() const override
Returns the pseudo tables depended upon in order to evaluate this function expression.
Definition: item_strfunc.h:1046
void cleanup() override
Called for every Item after use (preparation and execution).
Definition: item.cc:10763
Definition: item_strfunc.h:148
Item_str_ascii_func(Item *a, Item *b)
Definition: item_strfunc.h:163
Item_str_ascii_func(const POS &pos, Item *a, Item *b, Item *c)
Definition: item_strfunc.h:174
String * val_str_ascii(String *) override=0
Item_str_ascii_func()
Definition: item_strfunc.h:152
Item_str_ascii_func(Item *a, Item *b, Item *c)
Definition: item_strfunc.h:171
String ascii_buf
Definition: item_strfunc.h:149
Item_str_ascii_func(const POS &pos, Item *a, Item *b)
Definition: item_strfunc.h:166
Item_str_ascii_func(const POS &pos, Item *a)
Definition: item_strfunc.h:159
Item_str_ascii_func(Item *a)
Definition: item_strfunc.h:156
String * val_str(String *str) override
Definition: item_strfunc.h:179
Definition: item_strfunc.h:413
String * val_str(String *) override
Definition: item_strfunc.cc:1412
Item_str_conv(const POS &pos, Item *item)
Definition: item_strfunc.h:420
String tmp_value
Definition: item_strfunc.h:417
uint multiply
Definition: item_strfunc.h:415
my_charset_conv_case converter
Definition: item_strfunc.h:416
Definition: item_strfunc.h:76
Item_str_func()
Definition: item_strfunc.h:80
String * val_str_from_val_str_ascii(String *str, String *str2)
Definition: item_strfunc.cc:150
Item_str_func(Item *a, Item *b)
Definition: item_strfunc.h:88
my_decimal * val_decimal(my_decimal *) override
Definition: item_strfunc.cc:182
String * push_packet_overflow_warning(THD *thd, const char *func)
Calls push_warning_printf for packet overflow.
Definition: item_strfunc.cc:1505
Item_str_func(const POS &pos, PT_item_list *opt_list)
Definition: item_strfunc.h:112
Item_str_func(mem_root_deque< Item * > *list)
Definition: item_strfunc.h:110
Item_str_func(const POS &pos, Item *a, Item *b, Item *c)
Definition: item_strfunc.h:94
void add_json_info(Json_object *obj) override
Add all the node-specific json fields.
Definition: item_strfunc.h:140
bool get_date(MYSQL_TIME *ltime, my_time_flags_t fuzzydate) override
Definition: item_strfunc.h:118
Item_func super
Definition: item_strfunc.h:77
bool get_time(MYSQL_TIME *ltime) override
Definition: item_strfunc.h:121
Item_str_func(Item *a)
Definition: item_strfunc.h:84
Item_str_func(Item *a, Item *b, Item *c, Item *d)
Definition: item_strfunc.h:97
void left_right_max_length(THD *thd)
Definition: item_strfunc.cc:1488
enum Item_result result_type() const override
Definition: item_strfunc.h:124
Item_str_func(Item *a, Item *b, Item *c)
Definition: item_strfunc.h:92
longlong val_int() override
Definition: item_strfunc.h:115
Item_str_func(const POS &pos, Item *a, Item *b, Item *c, Item *d, Item *e, Item *f)
Definition: item_strfunc.h:107
Item_str_func(const POS &pos, Item *a)
Definition: item_strfunc.h:86
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_strfunc.h:127
double val_real() override
Definition: item_strfunc.h:116
Item_str_func(const POS &pos)
Definition: item_strfunc.h:82
Item_str_func(const POS &pos, Item *a, Item *b)
Definition: item_strfunc.h:90
Item_str_func(Item *a, Item *b, Item *c, Item *d, Item *e)
Definition: item_strfunc.h:102
bool fix_fields(THD *thd, Item **ref) override
Definition: item_strfunc.cc:172
Item_str_func(const POS &pos, Item *a, Item *b, Item *c, Item *d, Item *e)
Definition: item_strfunc.h:105
Item_str_func(const POS &pos, Item *a, Item *b, Item *c, Item *d)
Definition: item_strfunc.h:99
Definition: item_strfunc.h:1013
const char * func_name() const override
Definition: item_strfunc.h:1030
Item_typecast_char(THD *thd, Item *a, longlong length_arg, const CHARSET_INFO *cs_arg)
Definition: item_strfunc.h:1018
Item_typecast_char(const POS &pos, Item *a, longlong length_arg, const CHARSET_INFO *cs_arg)
Definition: item_strfunc.h:1023
enum Functype functype() const override
Definition: item_strfunc.h:1028
void print(const THD *thd, String *str, enum_query_type query_type) const override
This method is used for to:
Definition: item_strfunc.cc:3457
void add_json_info(Json_object *obj) override
Add all the node-specific json fields.
Definition: item_strfunc.cc:3470
bool eq_specific(const Item *item) const override
Provide a more specific equality check for a function.
Definition: item_strfunc.cc:3450
Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:930
String str_value
str_values's main purpose is to cache the value in save_in_field
Definition: item.h:3576
void set_nullable(bool nullable)
Definition: item.h:3687
void set_data_type_blob(enum_field_types type, uint32 max_l)
Set the Item to be of BLOB type.
Definition: item.h:1683
DTCollation collation
Character set and collation properties assigned for this Item.
Definition: item.h:3583
bool get_time_from_string(MYSQL_TIME *ltime)
Convert val_str() to time in MYSQL_TIME.
Definition: item.cc:1648
virtual Item_field * field_for_view_update()
Definition: item.h:3185
bool fixed
True if item has been resolved.
Definition: item.h:3675
bool null_value
True if item is null.
Definition: item.h:3712
bool unsigned_flag
Definition: item.h:3713
longlong val_int_from_string()
Definition: item.cc:526
bool get_date_from_string(MYSQL_TIME *ltime, my_time_flags_t flags)
Convert val_str() to date in MYSQL_TIME.
Definition: item.cc:1561
void set_data_type_string(uint32 max_l)
Set the Item to be variable length string.
Definition: item.h:1600
bool may_evaluate_const(const THD *thd) const
Return true if this is a const item that may be evaluated in the current phase of statement processin...
Definition: item.cc:1410
virtual String * val_str(String *str)=0
uint32 max_length
Maximum length of result of evaluating this item, in number of bytes.
Definition: item.h:3601
double val_real_from_string()
Definition: item.cc:472
Represents a JSON container value of type "object" (ECMA), type J_OBJECT here.
Definition: json_dom.h:367
bool add_alias(std::string_view key, Json_dom *value)
Insert the value into the object.
Definition: json_dom.h:409
Definition: sql_list.h:494
Definition: sql_locale.h:37
Storage for name strings.
Definition: item.h:298
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
Base class for parse tree nodes (excluding the Parse_tree_root hierarchy)
Definition: parse_tree_node_base.h:231
Using this class is fraught with peril, and you need to be very careful when doing so.
Definition: sql_string.h:167
void mem_free()
Definition: sql_string.h:400
void mark_as_const()
Definition: sql_string.h:247
bool copy()
Definition: sql_string.cc:198
void set(String &str, size_t offset, size_t arg_length)
Definition: sql_string.h:302
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
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:96
enum_query_type
Query type constants (usable as bitmap flags).
Definition: enum_query_type.h:31
@ MYSQL_TYPE_LONGLONG
Definition: field_types.h:64
@ MYSQL_TYPE_LONG_BLOB
Definition: field_types.h:86
static const std::string dec("DECRYPTION")
static void start(mysql_harness::PluginFuncEnv *env)
Definition: http_auth_backend_plugin.cc:180
#define NAME_STRING(x)
Definition: item.h:358
CHARSET_INFO * mysqld_collation_get_by_name(const char *name, CHARSET_INFO *name_cs=system_charset_info)
Get collation by name, send error to client on failure.
Definition: item_strfunc.cc:5118
String * mysql_generate_uuid(String *str)
Generate Universal Unique Identifier (UUID).
Definition: item_strfunc.cc:4306
A better implementation of the UNIX ctype(3) library.
MYSQL_STRINGS_EXPORT CHARSET_INFO my_charset_bin
Definition: ctype-bin.cc:500
size_t(* my_charset_conv_case)(const CHARSET_INFO *, char *, size_t, char *, size_t)
Definition: m_ctype.h:336
static constexpr uint32_t MY_CS_UNICODE
Definition: m_ctype.h:130
MYSQL_STRINGS_EXPORT CHARSET_INFO my_charset_utf8mb4_0900_bin
Definition: ctype-uca.cc:11481
static constexpr uint32_t MY_REPERTOIRE_ASCII
Definition: m_ctype.h:152
MYSQL_PLUGIN_IMPORT CHARSET_INFO * system_charset_info
Definition: mysqld.cc:1554
Common definition used by mysys, performance schema and server & client.
static constexpr int HOSTNAME_LENGTH
Definition: my_hostname.h:43
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
unsigned char uchar
Definition: my_inttypes.h:52
long long int longlong
Definition: my_inttypes.h:55
uint32_t uint32
Definition: my_inttypes.h:67
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
Common definition between mysql server & client.
#define MAX_BLOB_WIDTH
Default width for blob in bytes.
Definition: mysql_com.h:906
#define USERNAME_LENGTH
Definition: mysql_com.h:69
#define NAME_CHAR_LEN
Field/table name length.
Definition: mysql_com.h:60
#define USERNAME_CHAR_LENGTH
Definition: mysql_com.h:64
Time declarations shared between the server and client API: you should not add anything to this heade...
char * user
Definition: mysqladmin.cc:66
const char * host
Definition: mysqladmin.cc:65
static bool replace
Definition: mysqlimport.cc:70
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1105
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
Container::const_iterator find(const Container &c, Value &&value)
Definition: generic.h:39
std::list< T, ut::allocator< T > > list
Specialization of list which uses ut_allocator.
Definition: ut0new.h:2880
type_conversion_status
Status when storing a value in a field or converting from one datatype to another.
Definition: field.h:204
@ VGS_CHECK_CONSTRAINT
Definition: field.h:478
@ VGS_GENERATED_COLUMN
Definition: field.h:476
@ DERIVATION_COERCIBLE
Definition: field.h:184
@ DERIVATION_SYSCONST
Definition: field.h:185
File containing constants that can be used throughout the server.
constexpr const table_map RAND_TABLE_BIT
Definition: sql_const.h:113
constexpr const table_map INNER_TABLE_BIT
Definition: sql_const.h:111
Our own string classes, used pervasively throughout the executor.
case opt name
Definition: sslopt-case.h:29
Definition: m_ctype.h:421
const char * csname
Definition: m_ctype.h:426
unsigned state
Definition: m_ctype.h:425
Struct used to pass around arguments to/from check_function_as_value_generator.
Definition: item.h:488
const char * banned_function_name
the name of the function which is not allowed
Definition: item.h:502
Value_generator_source source
Definition: item.h:500
Definition: mysql_lex_string.h:40
Definition: mysql_lex_string.h:35
char * str
Definition: mysql_lex_string.h:36
size_t length
Definition: mysql_lex_string.h:37
Definition: mysql_time.h:82
Bison "location" class.
Definition: parse_location.h:43
Instances of Name_resolution_context store the information necessary for name resolution of Items and...
Definition: item.h:415
Environment data for the contextualization phase.
Definition: parse_tree_node_base.h:420
static const size_t TEXT_LENGTH
The number of bytes in the textual representation of a Uuid.
Definition: uuid.h:168
static constexpr std::size_t BYTE_LENGTH
The number of bytes in the data of a Uuid.
Definition: uuid.h:143
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