MySQL  8.0.16
Source Code Documentation
set_var_password Class Reference

#include <set_var.h>

Inheritance diagram for set_var_password:
set_var_base

Public Member Functions

 set_var_password (LEX_USER *user_arg, char *password_arg, char *current_password_arg, bool retain_current)
 
int resolve (THD *)
 Check privileges & fix_fields. More...
 
int check (THD *thd)
 Check the validity of the SET PASSWORD request. More...
 
int update (THD *thd)
 Set the value. 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
 
virtual int light_check (THD *thd)
 Used only by prepared statements to resolve and check. More...
 

Private Attributes

LEX_USERuser
 
char * password
 
char * current_password
 
bool retain_current_password
 

Constructor & Destructor Documentation

◆ set_var_password()

set_var_password::set_var_password ( LEX_USER user_arg,
char *  password_arg,
char *  current_password_arg,
bool  retain_current 
)

Member Function Documentation

◆ check()

int set_var_password::check ( THD thd)
virtual

Check the validity of the SET PASSWORD request.

Parameters
thdThe current thread
Returns
status code
Return values
0failure
1success

Implements set_var_base.

◆ print()

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

To self-print.

Implements set_var_base.

◆ resolve()

int set_var_password::resolve ( THD thd)
inlinevirtual

Check privileges & fix_fields.

Implements set_var_base.

◆ update()

int set_var_password::update ( THD thd)
virtual

Set the value.

Implements set_var_base.

Member Data Documentation

◆ current_password

char* set_var_password::current_password
private

◆ password

char* set_var_password::password
private

◆ retain_current_password

bool set_var_password::retain_current_password
private

◆ user

LEX_USER* set_var_password::user
private

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