My Project
|
Public Member Functions | |
virtual Item * | create_func (THD *thd, LEX_STRING name, List< Item > *item_list) |
virtual Item * | create (THD *thd, Item *arg1)=0 |
Protected Member Functions | |
Create_func_arg1 () | |
virtual | ~Create_func_arg1 () |
Adapter for functions that takes exactly one argument.
Create_func_arg1::Create_func_arg1 | ( | ) | [inline, protected] |
Constructor.
virtual Create_func_arg1::~Create_func_arg1 | ( | ) | [inline, protected, virtual] |
Destructor.
virtual Item* Create_func_arg1::create | ( | THD * | thd, |
Item * | arg1 | ||
) | [pure virtual] |
Builder method, with one argument.
thd | The current thread |
arg1 | The first argument of the function |
Implemented in Create_func_weekofyear, Create_func_weekday, Create_func_validate_password_strength, Create_func_unhex, Create_func_uncompressed_length, Create_func_uncompress, Create_func_ucase, Create_func_to_seconds, Create_func_to_days, Create_func_to_base64, Create_func_time_to_sec, Create_func_tan, Create_func_sqrt, Create_func_space, Create_func_soundex, Create_func_sleep, Create_func_sin, Create_func_sign, Create_func_sha, Create_func_sec_to_time, Create_func_rtrim, Create_func_reverse, Create_func_release_lock, Create_func_radians, Create_func_quote, Create_func_ord, Create_func_oct, Create_func_monthname, Create_func_md5, Create_func_ltrim, Create_func_log2, Create_func_log10, Create_func_load_file, Create_func_ln, Create_func_length, Create_func_lcase, Create_func_last_day, Create_func_isnull, Create_func_is_used_lock, Create_func_is_free_lock, Create_func_is_ipv4_mapped, Create_func_is_ipv4_compat, Create_func_is_ipv6, Create_func_is_ipv4, Create_func_inet6_ntoa, Create_func_inet6_aton, Create_func_inet_aton, Create_func_inet_ntoa, Create_func_hex, Create_func_from_days, Create_func_from_base64, Create_func_floor, Create_func_exp, Create_func_degrees, Create_func_dayofyear, Create_func_dayofweek, Create_func_dayofmonth, Create_func_dayname, Create_func_crc32, Create_func_cot, Create_func_cos, Create_func_compress, Create_func_coercibility, Create_func_char_length, Create_func_ceiling, Create_func_bit_length, Create_func_bit_count, Create_func_bin, Create_func_asin, Create_func_random_bytes, Create_func_acos, and Create_func_abs.
Item * Create_func_arg1::create_func | ( | THD * | thd, |
LEX_STRING | name, | ||
List< Item > * | item_list | ||
) | [virtual] |
The builder create method. Given the function name and list or arguments, this method creates an Item
that represents the function call. In case or errors, a NULL item is returned, and an error is reported. Note that the thd
object may be modified by the builder. In particular, the following members/methods can be set/called, depending on the function called and the function possible side effects.
thd->lex->binlog_row_based_if_mixed
thd->lex->current_context()
thd->lex->safe_to_cache_query
thd->lex->uncacheable(UNCACHEABLE_SIDEEFFECT)
thd->lex->uncacheable(UNCACHEABLE_RAND)
thd->lex->add_time_zone_tables_to_query_tables(thd)
thd | The current thread |
name | The function name |
item_list | The list of arguments to the function, can be NULL |
Implements Create_func.