MySQL  8.0.17
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:
set_var set_var_collation_client set_var_password set_var_user

Public Member Functions

 set_var_base ()
 
virtual ~set_var_base ()
 
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 void print (const THD *thd, String *str)=0
 To self-print. More...
 
virtual bool is_var_optimizer_trace () const
 
virtual int light_check (THD *thd)
 Used only by prepared statements to resolve and check. 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 assigmnent in SET (or elsewhere, e.g. in SELECT).

Constructor & Destructor Documentation

◆ set_var_base()

set_var_base::set_var_base ( )
inline

◆ ~set_var_base()

virtual set_var_base::~set_var_base ( )
inlinevirtual

Member Function Documentation

◆ check()

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

Evaluate the expression.

Implemented in set_var_collation_client, set_var_password, set_var_user, and 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_user, and set_var.

◆ print()

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

To self-print.

Implemented in set_var_collation_client, set_var_password, set_var_user, and set_var.

◆ resolve()

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

Check privileges & fix_fields.

Implemented in set_var_collation_client, set_var_password, set_var_user, and set_var.

◆ update()

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

Set the value.

Implemented in set_var_collation_client, set_var_password, set_var_user, and set_var.


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