drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
drizzled::Create_func_nullif Class Reference
Inheritance diagram for drizzled::Create_func_nullif:
[legend]
Collaboration diagram for drizzled::Create_func_nullif:
[legend]

Public Member Functions

virtual Item * create (Session *session, Item *arg1, Item *arg2)
virtual Item * create (Session *session, str_ref name, List< Item > *item_list)

Static Public Attributes

static Create_func_nullif s_singleton

Detailed Description

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

Member Function Documentation

◆ create() [1/2]

virtual Item * drizzled::Create_func_nullif::create ( Session * session,
Item * arg1,
Item * arg2 )
inlinevirtual

Builder method, with two arguments.

Parameters
sessionThe current thread
arg1The first argument of the function
arg2The second argument of the function
Returns
An item representing the function call

Implements drizzled::Create_func_arg2.

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

◆ create() [2/2]

Item * drizzled::Create_func_arg2::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

Reimplemented from drizzled::Create_func_arg2.

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

Member Data Documentation

◆ s_singleton

Create_func_nullif drizzled::Create_func_nullif::s_singleton
static

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


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