MySQL 9.0.0
Source Code Documentation
set_var_base Class Referenceabstract

A base class for everything that can be set with SET command. More...

#include <set_var.h>

Inheritance diagram for set_var_base:
[legend]

Public Member Functions

 set_var_base ()=default
 
virtual ~set_var_base ()=default
 
virtual int resolve (THD *thd)=0
 Check privileges & fix_fields. More...
 
virtual int check (THD *thd)=0
 Evaluate the expression. More...
 
virtual int update (THD *thd)=0
 Set the value. More...
 
virtual bool print (const THD *thd, String *str)=0
 To self-print. More...
 
virtual bool is_var_optimizer_trace () const
 
virtual void cleanup ()
 
virtual int light_check (THD *thd)
 Used only by prepared statements to resolve and check. More...
 
virtual bool is_sensitive () const
 Used to identify if variable is sensitive or not. More...
 

Detailed Description

A base class for everything that can be set with SET command.

It's similar to Items, an instance of this is created by the parser for every assignment in SET (or elsewhere, e.g. in SELECT).

Constructor & Destructor Documentation

◆ set_var_base()

set_var_base::set_var_base ( )
default

◆ ~set_var_base()

virtual set_var_base::~set_var_base ( )
virtualdefault

Member Function Documentation

◆ check()

virtual int set_var_base::check ( THD thd)
pure virtual

Evaluate the expression.

Implemented in set_var, set_var_user, set_var_password, and set_var_collation_client.

◆ cleanup()

virtual void set_var_base::cleanup ( )
inlinevirtual

◆ is_sensitive()

virtual bool set_var_base::is_sensitive ( ) const
inlinevirtual

Used to identify if variable is sensitive or not.

Reimplemented in set_var.

◆ is_var_optimizer_trace()

virtual bool set_var_base::is_var_optimizer_trace ( ) const
inlinevirtual
Returns
whether this variable is @@optimizer_trace.

Reimplemented in set_var.

◆ light_check()

virtual int set_var_base::light_check ( THD thd)
inlinevirtual

Used only by prepared statements to resolve and check.

No locking of tables between the two phases.

Reimplemented in set_var, and set_var_user.

◆ print()

virtual bool set_var_base::print ( const THD thd,
String str 
)
pure virtual

To self-print.

Implemented in set_var, set_var_user, set_var_password, and set_var_collation_client.

◆ resolve()

virtual int set_var_base::resolve ( THD thd)
pure virtual

Check privileges & fix_fields.

Implemented in set_var_password, set_var_collation_client, set_var, and set_var_user.

◆ update()

virtual int set_var_base::update ( THD thd)
pure virtual

Set the value.

Implemented in set_var, set_var_user, set_var_password, and set_var_collation_client.


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