summaryrefslogtreecommitdiff
path: root/sql/set_var.h
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <cvicentiu@gmail.com>2013-10-17 15:11:21 -0700
committerSergei Golubchik <sergii@pisem.net>2013-10-17 15:11:21 -0700
commit6062e87f5439e8568cb7efe63bb906a496e425be (patch)
treef1bdf7fd3081ee4d4fa0b5e900f91b05dc8fefe6 /sql/set_var.h
parent7ec24435b324c27412a94cbd71b707c9fd06b8ed (diff)
downloadmariadb-git-6062e87f5439e8568cb7efe63bb906a496e425be.tar.gz
Created new set_var_role class to handle the SET ROLE command
Diffstat (limited to 'sql/set_var.h')
-rw-r--r--sql/set_var.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/set_var.h b/sql/set_var.h
index f248dc2894f..75090d6e1da 100644
--- a/sql/set_var.h
+++ b/sql/set_var.h
@@ -276,6 +276,17 @@ public:
int update(THD *thd);
};
+/* For SET ROLE */
+
+class set_var_role: public set_var_base
+{
+ LEX_STRING role;
+public:
+ set_var_role(LEX_STRING role_arg) : role(role_arg) {};
+ int check(THD *thd);
+ int update(THD *thd);
+};
+
/* For SET NAMES and SET CHARACTER SET */