drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
drizzled::Create_udf_func Class Reference

#include <create.h>

Inheritance diagram for drizzled::Create_udf_func:
[legend]
Collaboration diagram for drizzled::Create_udf_func:
[legend]

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 ()

Detailed Description

Function builder for User Defined Functions.

Definition at line 119 of file drizzled/item/create.h.

Constructor & Destructor Documentation

◆ Create_udf_func()

drizzled::Create_udf_func::Create_udf_func ( )
inlineprotected

Constructor.

Definition at line 138 of file drizzled/item/create.h.

Member Function Documentation

◆ create() [1/2]

Item * drizzled::Create_udf_func::create ( Session * session,
const plugin::Function * fct,
List< Item > * item_list )

The builder create method, for User Defined Functions.

Parameters
sessionThe current thread
fctThe User Defined Function metadata
item_listThe list of arguments to the function, can be NULL
Returns
An item representing the parsed function call

Definition at line 943 of file drizzled/item/create.cc.

◆ create() [2/2]

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().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 938 of file drizzled/item/create.cc.

Member Data Documentation

◆ s_singleton

Create_udf_func drizzled::Create_udf_func::s_singleton
static

Singleton.

Definition at line 134 of file drizzled/item/create.h.


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