MySQL 9.1.0
Source Code Documentation
set_var_user Class Reference

#include <set_var.h>

Inheritance diagram for set_var_user:
[legend]

Public Member Functions

 set_var_user (Item_func_set_user_var *item)
 
int resolve (THD *thd) override
 Check privileges & fix_fields. More...
 
int check (THD *thd) override
 Evaluate the expression. More...
 
int update (THD *thd) override
 Set the value. More...
 
int light_check (THD *thd) override
 Check variable, but without assigning value (used by PS). More...
 
bool print (const THD *thd, String *str) override
 To self-print. More...
 
- Public Member Functions inherited from set_var_base
 set_var_base ()=default
 
virtual ~set_var_base ()=default
 
virtual bool is_var_optimizer_trace () const
 
virtual void cleanup ()
 
virtual bool is_sensitive () const
 Used to identify if variable is sensitive or not. More...
 

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

Evaluate the expression.

Implements set_var_base.

◆ light_check()

int set_var_user::light_check ( THD thd)
overridevirtual

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

bool set_var_user::print ( const THD thd,
String str 
)
overridevirtual

To self-print.

Implements set_var_base.

◆ resolve()

int set_var_user::resolve ( THD thd)
overridevirtual

Check privileges & fix_fields.

Implements set_var_base.

◆ update()

int set_var_user::update ( THD thd)
overridevirtual

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: