Public Member Functions | |
| virtual Item * | create (Session *session, Item *arg1, Item *arg2) |
| virtual Item * | create (Session *session, LEX_STRING name, List< Item > *item_list) |
Static Public Attributes | |
| static Create_func_nullif | s_singleton |
| Item * drizzled::Create_func_nullif::create | ( | Session * | session, |
| Item * | arg1, | ||
| Item * | arg2 | ||
| ) | [virtual] |
Builder method, with two arguments.
| session | The current thread |
| arg1 | The first argument of the function |
| arg2 | The second argument of the function |
Implements drizzled::Create_func_arg2.
Definition at line 1723 of file create.cc.
References drizzled::Session::mem_root.
| Item * drizzled::Create_func_arg2::create | ( | Session * | session, |
| LEX_STRING | name, | ||
| List< Item > * | item_list | ||
| ) | [virtual, inherited] |
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().binlog_row_based_if_mixed session->lex().current_context() session->lex().safe_to_cache_query session->lex().uncacheable(UNCACHEABLE_SIDEEFFECT) session->lex().uncacheable(UNCACHEABLE_RAND) session->lex().add_time_zone_tables_to_query_tables(session) | session | The current thread |
| name | The function name |
| item_list | The list of arguments to the function, can be NULL |
Implements drizzled::Create_func.
Definition at line 1162 of file create.cc.
References drizzled::Item::is_autogenerated_name.