diff options
author | Vicențiu Ciorbaru <cvicentiu@gmail.com> | 2013-10-17 15:11:21 -0700 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-10-17 15:11:21 -0700 |
commit | 6062e87f5439e8568cb7efe63bb906a496e425be (patch) | |
tree | f1bdf7fd3081ee4d4fa0b5e900f91b05dc8fefe6 /sql/set_var.cc | |
parent | 7ec24435b324c27412a94cbd71b707c9fd06b8ed (diff) | |
download | mariadb-git-6062e87f5439e8568cb7efe63bb906a496e425be.tar.gz |
Created new set_var_role class to handle the SET ROLE command
Diffstat (limited to 'sql/set_var.cc')
-rw-r--r-- | sql/set_var.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sql/set_var.cc b/sql/set_var.cc index 4473ed54c46..d09e2bcac77 100644 --- a/sql/set_var.cc +++ b/sql/set_var.cc @@ -872,6 +872,25 @@ int set_var_password::update(THD *thd) } /***************************************************************************** + Functions to handle SET ROLE +*****************************************************************************/ +int set_var_role::check(THD *thd) +{ + /* nothing to check */ + return 0; +} + +int set_var_role::update(THD *thd) +{ +#ifndef NO_EMBEDDED_ACCESS_CHECKS + return acl_setrole(thd, this->role.str); +#else + return 0; +#endif +} + + +/***************************************************************************** Functions to handle SET NAMES and SET CHARACTER SET *****************************************************************************/ |