MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Create_func_arg3 Class Reference
Inheritance diagram for Create_func_arg3:
Collaboration diagram for Create_func_arg3:

Public Member Functions

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

Protected Member Functions

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

Detailed Description

Adapter for functions that takes exactly three arguments.

Definition at line 153 of file item_create.cc.

Constructor & Destructor Documentation

Create_func_arg3::Create_func_arg3 ( )
inlineprotected

Constructor.

Definition at line 170 of file item_create.cc.

virtual Create_func_arg3::~Create_func_arg3 ( )
inlineprotectedvirtual

Destructor.

Definition at line 172 of file item_create.cc.

Member Function Documentation

virtual Item* Create_func_arg3::create ( THD *  thd,
Item arg1,
Item arg2,
Item arg3 
)
pure virtual

Builder method, with three arguments.

Parameters
thdThe current thread
arg1The first argument of the function
arg2The second argument of the function
arg3The third argument of the function
Returns
An item representing the function call

Implemented in Create_func_xml_update, Create_func_substr_index, Create_func_rpad, Create_func_maketime, Create_func_lpad, Create_func_convert_tz, and Create_func_conv.

Here is the caller graph for this function:

Item * Create_func_arg3::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 2962 of file item_create.cc.

Here is the call graph for this function:


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