summaryrefslogtreecommitdiff
path: root/sql/set_var.h
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <cvicentiu@gmail.com>2013-10-17 20:39:23 -0700
committerSergei Golubchik <sergii@pisem.net>2013-10-17 20:39:23 -0700
commitdb25d8f97713e3a4ade8284c57f65c63605c5b25 (patch)
tree1520135c114dcd1c576384dd45d6e787de5e0e63 /sql/set_var.h
parent494f0117995bcd786e481960d2c4cdd5d13f0f61 (diff)
downloadmariadb-git-db25d8f97713e3a4ade8284c57f65c63605c5b25.tar.gz
Modified set_role_var to implement both a role check in the check() function,
as well as only set privileges in the update() function.
Diffstat (limited to 'sql/set_var.h')
-rw-r--r--sql/set_var.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/set_var.h b/sql/set_var.h
index 75090d6e1da..11501c4212a 100644
--- a/sql/set_var.h
+++ b/sql/set_var.h
@@ -278,11 +278,11 @@ public:
/* For SET ROLE */
-class set_var_role: public set_var_base
+class set_var_role: public set_var
{
- LEX_STRING role;
public:
- set_var_role(LEX_STRING role_arg) : role(role_arg) {};
+ set_var_role(LEX_STRING role_arg) :
+ set_var(OPT_SESSION, NULL, &role_arg, NULL){};
int check(THD *thd);
int update(THD *thd);
};