MySQL  8.0.21
Source Code Documentation
item_create.h File Reference

Builder for SQL functions. More...

#include <stddef.h>
#include "lex_string.h"
#include "sql/parse_tree_node_base.h"

Go to the source code of this file.

Classes

class  Create_func
 Public function builder interface. More...
 
class  Create_qfunc
 Function builder for qualified functions. More...
 
class  Create_udf_func
 Function builder for User Defined Functions. More...
 

Enumerations

enum  Cast_target : unsigned char {
  Cast_target::ITEM_CAST_SIGNED_INT, Cast_target::ITEM_CAST_UNSIGNED_INT, Cast_target::ITEM_CAST_DATE, Cast_target::ITEM_CAST_TIME,
  Cast_target::ITEM_CAST_DATETIME, Cast_target::ITEM_CAST_CHAR, Cast_target::ITEM_CAST_DECIMAL, Cast_target::ITEM_CAST_JSON,
  Cast_target::ITEM_CAST_FLOAT, Cast_target::ITEM_CAST_DOUBLE
}
 

Functions

Create_funcfind_native_function_builder (const LEX_STRING &name)
 Find the native function builder associated with a given function name. More...
 
Create_qfuncfind_qualified_function_builder (THD *thd)
 Find the function builder for qualified functions. More...
 
Itemcreate_func_cast (THD *thd, const POS &pos, Item *a, const Cast_type &type, bool as_array)
 Builder for cast expressions. More...
 
Itemcreate_func_cast (THD *thd, const POS &pos, Item *a, Cast_target cast_target, const CHARSET_INFO *cs)
 
Itemcreate_func_json_value (THD *thd, const POS &pos, Item *arg, Item *path, const Cast_type &type, Json_on_response_type on_empty_type, Item *on_empty_default, Json_on_response_type on_error_type, Item *on_error_default)
 Creates an Item that represents a JSON_VALUE expression. More...
 
Itemcreate_temporal_literal (THD *thd, const char *str, size_t length, const CHARSET_INFO *cs, enum_field_types type, bool send_error)
 Builder for datetime literals: TIME'00:00:00', DATE'2001-01-01', TIMESTAMP'2001-01-01 00:00:00'. More...
 
bool item_create_init ()
 Load the hash table for native functions. More...
 
void item_create_cleanup ()
 Empty the hash table for native functions. More...
 

Detailed Description

Builder for SQL functions.