MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Create_func_arg1 Class Reference

Inherits Create_func.

Inherited by Create_func_abs, Create_func_acos, Create_func_asin, Create_func_bin, Create_func_bit_count, Create_func_bit_length, Create_func_ceiling, Create_func_char_length, Create_func_coercibility, Create_func_compress, Create_func_cos, Create_func_cot, Create_func_crc32, Create_func_dayname, Create_func_dayofmonth, Create_func_dayofweek, Create_func_dayofyear, Create_func_degrees, Create_func_exp, Create_func_floor, Create_func_from_base64, Create_func_from_days, Create_func_hex, Create_func_inet6_aton, Create_func_inet6_ntoa, Create_func_inet_aton, Create_func_inet_ntoa, Create_func_is_free_lock, Create_func_is_ipv4, Create_func_is_ipv4_compat, Create_func_is_ipv4_mapped, Create_func_is_ipv6, Create_func_is_used_lock, Create_func_isnull, Create_func_last_day, Create_func_lcase, Create_func_length, Create_func_ln, Create_func_load_file, Create_func_log10, Create_func_log2, Create_func_ltrim, Create_func_md5, Create_func_monthname, Create_func_oct, Create_func_ord, Create_func_quote, Create_func_radians, Create_func_release_lock, Create_func_reverse, Create_func_rtrim, Create_func_sec_to_time, Create_func_sha, Create_func_sign, Create_func_sin, Create_func_sleep, Create_func_soundex, Create_func_space, Create_func_sqrt, Create_func_tan, Create_func_time_to_sec, Create_func_to_base64, Create_func_to_days, Create_func_to_seconds, Create_func_ucase, Create_func_uncompress, Create_func_uncompressed_length, Create_func_unhex, Create_func_validate_password_strength, Create_func_weekday, and Create_func_weekofyear.

Collaboration diagram for Create_func_arg1:

Public Member Functions

virtual Itemcreate_func (THD *thd, LEX_STRING name, List< Item > *item_list)
virtual Itemcreate (THD *thd, Item *arg1)=0

Protected Member Functions

 Create_func_arg1 ()
virtual ~Create_func_arg1 ()
- Protected Member Functions inherited from Create_func
 Create_func ()
virtual ~Create_func ()

Detailed Description

Adapter for functions that takes exactly one argument.

Definition at line 102 of file item_create.cc.

Constructor & Destructor Documentation

Create_func_arg1::Create_func_arg1 ( )
inlineprotected

Constructor.

Definition at line 117 of file item_create.cc.

virtual Create_func_arg1::~Create_func_arg1 ( )
inlineprotectedvirtual

Destructor.

Definition at line 119 of file item_create.cc.

Member Function Documentation

virtual Item* Create_func_arg1::create ( THD *  thd,
Item arg1 
)
pure virtual

Builder method, with one argument.

Parameters
thdThe current thread
arg1The first argument of the function
Returns
An item representing the function call

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_acos, and Create_func_abs.

Here is the caller graph for this function:

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)
Parameters
thdThe current thread
nameThe function name
item_listThe list of arguments to the function, can be NULL
Returns
An item representing the parsed function call, or NULL

Implements Create_func.

Definition at line 2908 of file item_create.cc.

Here is the call graph for this function:


The documentation for this class was generated from the following file: