MySQL 9.1.0
Source Code Documentation
set_var_password Class Reference

#include <set_var.h>

Inheritance diagram for set_var_password:
[legend]

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 *) override
 Check privileges & fix_fields. More...
 
int check (THD *thd) override
 Check the validity of the SET PASSWORD request. More...
 
int update (THD *thd) override
 Set the value. More...
 
bool print (const THD *thd, String *str) override
 To self-print. More...
 
 ~set_var_password () override
 
- 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 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...
 

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

Member Function Documentation

◆ check()

int set_var_password::check ( THD thd)
overridevirtual

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

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

To self-print.

Implements set_var_base.

◆ resolve()

int set_var_password::resolve ( THD thd)
inlineoverridevirtual

Check privileges & fix_fields.

Implements set_var_base.

◆ update()

int set_var_password::update ( THD thd)
overridevirtual

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: