MySQL  8.0.27
Source Code Documentation
item_create.h File Reference

Builder for SQL functions. More...

#include <cstddef>
#include "lex_string.h"
#include "my_inttypes.h"
#include "sql/parse_location.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 class  Cast_target : unsigned char {
  ITEM_CAST_SIGNED_INT , ITEM_CAST_UNSIGNED_INT , ITEM_CAST_DATE , ITEM_CAST_TIME ,
  ITEM_CAST_DATETIME , ITEM_CAST_YEAR , ITEM_CAST_CHAR , ITEM_CAST_DECIMAL ,
  ITEM_CAST_JSON , ITEM_CAST_FLOAT , ITEM_CAST_DOUBLE , ITEM_CAST_POINT ,
  ITEM_CAST_LINESTRING , ITEM_CAST_POLYGON , ITEM_CAST_MULTIPOINT , ITEM_CAST_MULTILINESTRING ,
  ITEM_CAST_MULTIPOLYGON , ITEM_CAST_GEOMETRYCOLLECTION
}
 

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 *arg, const Cast_type &type, bool as_array)
 This function does not store the reference to type. 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.