Drizzled Public API Documentation

drizzled::Create_native_func Class Reference
Inheritance diagram for drizzled::Create_native_func:
drizzled::Create_func drizzled::Create_func_concat drizzled::Create_func_concat_ws drizzled::Create_func_export_set drizzled::Create_func_field drizzled::Create_func_from_unixtime drizzled::Create_func_greatest drizzled::Create_func_last_insert_id drizzled::Create_func_least drizzled::Create_func_locate drizzled::Create_func_make_set drizzled::Create_func_round drizzled::Create_func_unix_timestamp

Public Member Functions

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

Detailed Description

Definition at line 128 of file create.cc.

Member Function Documentation

virtual Item* drizzled::Create_native_func::create ( Session ,
str_ref  name,
List< Item > *  item_list 
)
inlinevirtual

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.

Definition at line 131 of file create.cc.

References drizzled::has_named_parameters().

virtual Item* drizzled::Create_native_func::create_native ( Session ,
str_ref  name,
List< Item > *   
)
pure virtual

Builder method, with no arguments.

Parameters
sessionThe current thread
nameThe native function name
item_listThe function parameters, none of which are named
Returns
An item representing the function call

Implemented in drizzled::Create_func_unix_timestamp, drizzled::Create_func_round, drizzled::Create_func_make_set, drizzled::Create_func_locate, drizzled::Create_func_least, drizzled::Create_func_last_insert_id, drizzled::Create_func_greatest, drizzled::Create_func_from_unixtime, drizzled::Create_func_field, drizzled::Create_func_export_set, drizzled::Create_func_concat_ws, and drizzled::Create_func_concat.


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