|
drizzle
C++ MySQL-protocol-compatible database server
|
Public Member Functions | |
| virtual Item * | create (Session *session, str_ref name, List< Item > *item_list) |
| virtual Item * | create (Session *session, Item *arg1, Item *arg2)=0 |
Adapter for functions that takes exactly two arguments.
Definition at line 193 of file drizzled/item/create.cc.
|
pure virtual |
Builder method, with two arguments.
| session | The current thread |
| arg1 | The first argument of the function |
| arg2 | The second argument of the function |
Implemented in drizzled::Create_func_date_format, drizzled::Create_func_datediff, drizzled::Create_func_decode, drizzled::Create_func_find_in_set, drizzled::Create_func_ifnull, drizzled::Create_func_instr, drizzled::Create_func_makedate, drizzled::Create_func_name_const, drizzled::Create_func_nullif, drizzled::Create_func_period_add, drizzled::Create_func_period_diff, drizzled::Create_func_strcmp, and drizzled::Create_func_time_format.
|
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) | session | The current thread |
| name | The function name |
| item_list | The list of arguments to the function, can be NULL |
Implements drizzled::Create_func.
Reimplemented in drizzled::Create_func_date_format, drizzled::Create_func_datediff, drizzled::Create_func_decode, drizzled::Create_func_find_in_set, drizzled::Create_func_ifnull, drizzled::Create_func_instr, drizzled::Create_func_makedate, drizzled::Create_func_name_const, drizzled::Create_func_nullif, drizzled::Create_func_period_add, drizzled::Create_func_period_diff, drizzled::Create_func_strcmp, and drizzled::Create_func_time_format.
Definition at line 980 of file drizzled/item/create.cc.