drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
drizzled::Create_func_arg1 Class Referenceabstract
Inheritance diagram for drizzled::Create_func_arg1:
[legend]
Collaboration diagram for drizzled::Create_func_arg1:
[legend]

Public Member Functions

virtual Item * create (Session *session, str_ref name, List< Item > *item_list)
virtual Item * create (Session *session, Item *arg1)=0

Detailed Description

Adapter for functions that takes exactly one argument.

Definition at line 174 of file drizzled/item/create.cc.

Member Function Documentation

◆ create() [1/2]

◆ create() [2/2]

Item * drizzled::Create_func_arg1::create ( Session * ,
str_ref 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 session 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.

  • session->lex().current_context()
  • session->lex().uncacheable(UNCACHEABLE_SIDEEFFECT)
  • session->lex().uncacheable(UNCACHEABLE_RAND)
Parameters
sessionThe 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 drizzled::Create_func.

Reimplemented in drizzled::Create_func_bin, drizzled::Create_func_cot, drizzled::Create_func_dayname, drizzled::Create_func_dayofmonth, drizzled::Create_func_dayofweek, drizzled::Create_func_dayofyear, drizzled::Create_func_degrees, drizzled::Create_func_from_days, drizzled::Create_func_isnull, drizzled::Create_func_last_day, drizzled::Create_func_lcase, drizzled::Create_func_load_file, drizzled::Create_func_ltrim, drizzled::Create_func_monthname, drizzled::Create_func_oct, drizzled::Create_func_radians, drizzled::Create_func_rtrim, drizzled::Create_func_sign, drizzled::Create_func_space, drizzled::Create_func_tan, drizzled::Create_func_to_days, drizzled::Create_func_ucase, and drizzled::Create_func_weekday.

Definition at line 965 of file drizzled/item/create.cc.


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