MySQL  8.0.16
Source Code Documentation
set_var_user Class Reference

#include <set_var.h>

Inheritance diagram for set_var_user:
set_var_base

Public Member Functions

 set_var_user (Item_func_set_user_var *item)
 
int resolve (THD *thd)
 Check privileges & fix_fields. More...
 
int check (THD *thd)
 Evaluate the expression. More...
 
int update (THD *thd)
 Set the value. More...
 
int light_check (THD *thd)
 Check variable, but without assigning value (used by PS). More...
 
void print (const THD *thd, String *str)
 To self-print. More...
 
- Public Member Functions inherited from set_var_base
 set_var_base ()
 
virtual ~set_var_base ()
 
virtual bool is_var_optimizer_trace () const
 

Private Attributes

Item_func_set_user_varuser_var_item
 

Constructor & Destructor Documentation

◆ set_var_user()

set_var_user::set_var_user ( Item_func_set_user_var item)
inline

Member Function Documentation

◆ check()

int set_var_user::check ( THD thd)
virtual

Evaluate the expression.

Implements set_var_base.

◆ light_check()

int set_var_user::light_check ( THD thd)
virtual

Check variable, but without assigning value (used by PS).

Parameters
thdthread handler
Return values
0ok
1ERROR, message sent (normally no variables was updated)
-1ERROR, message not sent

Reimplemented from set_var_base.

◆ print()

void set_var_user::print ( const THD thd,
String str 
)
virtual

To self-print.

Implements set_var_base.

◆ resolve()

int set_var_user::resolve ( THD thd)
virtual

Check privileges & fix_fields.

Implements set_var_base.

◆ update()

int set_var_user::update ( THD thd)
virtual

Set the value.

Implements set_var_base.

Member Data Documentation

◆ user_var_item

Item_func_set_user_var* set_var_user::user_var_item
private

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