#include <create.h>
Public Member Functions | |
| virtual Item * | create (Session *, str_ref name, List< Item > *item_list) |
| Item * | create (Session *, const plugin::Function *fct, List< Item > *item_list) |
Static Public Attributes | |
| static Create_udf_func | s_singleton |
Protected Member Functions | |
| Create_udf_func () | |
| drizzled::Create_udf_func::Create_udf_func | ( | ) | [inline, protected] |
| Item * drizzled::Create_udf_func::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().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.
| Item * drizzled::Create_udf_func::create | ( | Session * | session, |
| const plugin::Function * | fct, | ||
| List< Item > * | item_list | ||
| ) |
The builder create method, for User Defined Functions.
| session | The current thread |
| fct | The User Defined Function metadata |
| item_list | The list of arguments to the function, can be NULL |
Definition at line 943 of file create.cc.
References drizzled::Item_func::check_argument_count().