My Project
Classes | Defines | Functions
item_create.cc File Reference

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"

Classes

class  Create_native_func
class  Create_func_arg0
class  Create_func_arg1
class  Create_func_arg2
class  Create_func_arg3
class  Create_sp_func
class  Create_func_no_geom
class  Create_func_abs
class  Create_func_acos
class  Create_func_addtime
class  Create_func_aes_base
class  Create_func_aes_encrypt
class  Create_func_aes_decrypt
class  Create_func_random_bytes
class  Create_func_asin
class  Create_func_atan
class  Create_func_benchmark
class  Create_func_bin
class  Create_func_bit_count
class  Create_func_bit_length
class  Create_func_ceiling
class  Create_func_char_length
class  Create_func_coercibility
class  Create_func_compress
class  Create_func_concat
class  Create_func_concat_ws
class  Create_func_connection_id
class  Create_func_conv
class  Create_func_convert_tz
class  Create_func_cos
class  Create_func_cot
class  Create_func_crc32
class  Create_func_date_format
class  Create_func_datediff
class  Create_func_dayname
class  Create_func_dayofmonth
class  Create_func_dayofweek
class  Create_func_dayofyear
class  Create_func_decode
class  Create_func_degrees
class  Create_func_des_decrypt
class  Create_func_des_encrypt
class  Create_func_elt
class  Create_func_encode
class  Create_func_encrypt
class  Create_func_exp
class  Create_func_export_set
class  Create_func_field
class  Create_func_find_in_set
class  Create_func_floor
class  Create_func_found_rows
class  Create_func_from_base64
class  Create_func_from_days
class  Create_func_from_unixtime
class  Create_func_get_lock
class  Create_func_greatest
class  Create_func_gtid_subtract
class  Create_func_gtid_subset
class  Create_func_hex
class  Create_func_ifnull
class  Create_func_inet_ntoa
class  Create_func_inet_aton
class  Create_func_inet6_aton
class  Create_func_inet6_ntoa
class  Create_func_is_ipv4
class  Create_func_is_ipv6
class  Create_func_is_ipv4_compat
class  Create_func_is_ipv4_mapped
class  Create_func_instr
class  Create_func_is_free_lock
class  Create_func_is_used_lock
class  Create_func_isnull
class  Create_func_last_day
class  Create_func_last_insert_id
class  Create_func_lcase
class  Create_func_least
class  Create_func_length
class  Create_func_like_range_min
class  Create_func_like_range_max
class  Create_func_ln
class  Create_func_load_file
class  Create_func_locate
class  Create_func_log
class  Create_func_log10
class  Create_func_log2
class  Create_func_lpad
class  Create_func_ltrim
class  Create_func_makedate
class  Create_func_maketime
class  Create_func_make_set
class  Create_func_master_pos_wait
class  Create_func_master_gtid_set_wait
class  Create_func_md5
class  Create_func_monthname
class  Create_func_name_const
class  Create_func_nullif
class  Create_func_oct
class  Create_func_ord
class  Create_func_period_add
class  Create_func_period_diff
class  Create_func_pi
class  Create_func_pow
class  Create_func_quote
class  Create_func_radians
class  Create_func_rand
class  Create_func_release_lock
class  Create_func_reverse
class  Create_func_round
class  Create_func_rpad
class  Create_func_rtrim
class  Create_func_sec_to_time
class  Create_func_sha
class  Create_func_sha2
class  Create_func_sign
class  Create_func_sin
class  Create_func_sleep
class  Create_func_soundex
class  Create_func_space
class  Create_func_sqrt
class  Create_func_str_to_date
class  Create_func_strcmp
class  Create_func_substr_index
class  Create_func_subtime
class  Create_func_tan
class  Create_func_time_format
class  Create_func_time_to_sec
class  Create_func_timediff
class  Create_func_to_base64
class  Create_func_to_days
class  Create_func_to_seconds
class  Create_func_ucase
class  Create_func_uncompress
class  Create_func_uncompressed_length
class  Create_func_unhex
class  Create_func_unix_timestamp
class  Create_func_uuid
class  Create_func_uuid_short
class  Create_func_validate_password_strength
class  Create_func_version
class  Create_func_weekday
class  Create_func_weekofyear
class  Create_func_xml_extractvalue
class  Create_func_xml_update
class  Create_func_year_week
struct  Native_func_registry

Defines

#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_funcfind_native_function_builder (THD *thd, LEX_STRING name)
Create_qfuncfind_qualified_function_builder (THD *thd)
Itemcreate_func_cast (THD *thd, Item *a, Cast_target cast_type, const char *c_len, const char *c_dec, const CHARSET_INFO *cs)
Itemcreate_temporal_literal (THD *thd, const char *str, uint length, const CHARSET_INFO *cs, enum_field_types type, bool send_error)

Detailed Description

Functions to create an item. Used by sql_yac.yy.


Function Documentation

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.

Parameters:
thdThe current thread
aThe item to cast
cast_typethe type casted into
lenTODO
decTODO
csThe character set
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'.

Parameters:
thdThe current thread
strCharacter literal
lengthLength of str
typeType of literal (TIME, DATE or DATETIME)
send_errorWhether to generate an error on failure
Create_func* find_native_function_builder ( THD *  thd,
LEX_STRING  name 
)

Find the native function builder associated with a given function name.

Parameters:
thdThe current thread
nameThe native function name
Returns:
The native function builder associated with the name, or NULL

Find the function builder for qualified functions.

Parameters:
thdThe current thread
Returns:
A function builder for qualified functions
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines