MySQL  8.0.18
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, bool generate_password)
 
const LEX_USERget_user (void)
 
bool has_generated_password (void)
 
const char * get_generated_password (void)
 
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...
 
virtual ~set_var_password ()
 
- 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
 
const char * current_password
 
bool retain_current_password
 
bool generate_password
 
char * str_generated_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,
bool  generate_password 
)

◆ ~set_var_password()

set_var_password::~set_var_password ( )
virtual

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.

◆ get_generated_password()

const char* set_var_password::get_generated_password ( void  )
inline

◆ get_user()

const LEX_USER* set_var_password::get_user ( void  )
inline

◆ has_generated_password()

bool set_var_password::has_generated_password ( void  )
inline

◆ 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

const char* set_var_password::current_password
private

◆ generate_password

bool set_var_password::generate_password
private

◆ password

char* set_var_password::password
private

◆ retain_current_password

bool set_var_password::retain_current_password
private

◆ str_generated_password

char* set_var_password::str_generated_password
private

◆ user

LEX_USER* set_var_password::user
private

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