|
MySQL 5.6.14 Source Code Document
|
Functions to create an item. Used by sql_yac.yy. More...
#include "sql_priv.h"#include "sql_class.h"#include "set_var.h"#include "sp_head.h"#include "sp.h"#include "item_inetfunc.h"#include "sql_time.h"
Go to the source code of this file.
Macros | |
| #define | BUILDER(F) & F::s_singleton |
| #define | GEOM_BUILDER(F) & Create_func_no_geom::s_singleton |
Functions | |
| uchar * | get_native_fct_hash_key (const uchar *buff, size_t *length, my_bool) |
| int | item_create_init () |
| void | item_create_cleanup () |
| Create_func * | find_native_function_builder (THD *thd, LEX_STRING name) |
| Create_qfunc * | find_qualified_function_builder (THD *thd) |
| Item * | create_func_cast (THD *thd, Item *a, Cast_target cast_type, const char *c_len, const char *c_dec, const CHARSET_INFO *cs) |
| Item * | create_temporal_literal (THD *thd, const char *str, uint length, const CHARSET_INFO *cs, enum_field_types type, bool send_error) |
Functions to create an item. Used by sql_yac.yy.
Definition in file item_create.cc.
| Item* create_func_cast | ( | THD * | thd, |
| Item * | a, | ||
| Cast_target | cast_type, | ||
| const char * | len, | ||
| const char * | dec, | ||
| const CHARSET_INFO * | cs | ||
| ) |
Builder for cast expressions.
| thd | The current thread |
| a | The item to cast |
| cast_type | the type casted into |
| len | TODO |
| dec | TODO |
| cs | The character set |
Definition at line 5760 of file item_create.cc.

| Item* create_temporal_literal | ( | THD * | thd, |
| const char * | str, | ||
| uint | 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'.
| thd | The current thread |
| str | Character literal |
| length | Length of str |
| type | Type of literal (TIME, DATE or DATETIME) |
| send_error | Whether to generate an error on failure |
Definition at line 5888 of file item_create.cc.
| Create_func* find_native_function_builder | ( | THD * | thd, |
| LEX_STRING | name | ||
| ) |
Find the native function builder associated with a given function name.
| thd | The current thread |
| name | The native function name |
Definition at line 5734 of file item_create.cc.
| Create_qfunc* find_qualified_function_builder | ( | THD * | thd | ) |
Find the function builder for qualified functions.
| thd | The current thread |
Definition at line 5753 of file item_create.cc.