Drizzled Public API Documentation

drizzled::Create_func_arg2 Class Reference
Inheritance diagram for drizzled::Create_func_arg2:
drizzled::Create_func 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 drizzled::Create_func_time_format

List of all members.

Public Member Functions

virtual Itemcreate (Session *session, LEX_STRING name, List< Item > *item_list)
virtual Itemcreate (Session *session, Item *arg1, Item *arg2)=0

Protected Member Functions

 Create_func_arg2 ()
virtual ~Create_func_arg2 ()

Detailed Description

Adapter for functions that takes exactly two arguments.

Definition at line 189 of file create.cc.


Constructor & Destructor Documentation

Constructor.

Definition at line 205 of file create.cc.

virtual drizzled::Create_func_arg2::~Create_func_arg2 ( ) [inline, protected, virtual]

Destructor.

Definition at line 207 of file create.cc.


Member Function Documentation

Item * drizzled::Create_func_arg2::create ( Session session,
LEX_STRING  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)
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 1162 of file create.cc.

References drizzled::Item::is_autogenerated_name.

virtual Item* drizzled::Create_func_arg2::create ( Session session,
Item arg1,
Item arg2 
) [pure virtual]

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