summaryrefslogtreecommitdiff
path: root/sql/set_var.h
diff options
context:
space:
mode:
authorVicentiu Ciorbaru <cvicentiu@gmail.com>2014-07-13 23:57:10 +0000
committerSergei Golubchik <serg@mariadb.org>2014-07-23 14:48:12 +0200
commit64b27c734eed91e2b79701c9c53283d9411f702f (patch)
tree6f7e49f44ad916637fb214fc93df1a59bcf76553 /sql/set_var.h
parent43351faf2b229fb2e87331227efb2daf554647a7 (diff)
downloadmariadb-git-64b27c734eed91e2b79701c9c53283d9411f702f.tar.gz
Added default role implementation
Diffstat (limited to 'sql/set_var.h')
-rw-r--r--sql/set_var.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/sql/set_var.h b/sql/set_var.h
index 564dac587d9..bb92e555aa7 100644
--- a/sql/set_var.h
+++ b/sql/set_var.h
@@ -291,6 +291,18 @@ public:
int update(THD *thd);
};
+/* For SET DEFAULT ROLE */
+
+class set_var_default_role: public set_var_base
+{
+ LEX_USER *user;
+ LEX_STRING role;
+public:
+ set_var_default_role(LEX_USER *user_arg, LEX_STRING role_arg) :
+ user(user_arg), role(role_arg) {}
+ int check(THD *thd);
+ int update(THD *thd);
+};
/* For SET NAMES and SET CHARACTER SET */