summaryrefslogtreecommitdiff
path: root/sql/set_var.h
diff options
context:
space:
mode:
authorunknown <guilhem@mysql.com>2003-06-11 17:07:33 +0200
committerunknown <guilhem@mysql.com>2003-06-11 17:07:33 +0200
commit3d0f6bf0331087cfc3317fc835355aeb05e81178 (patch)
tree4b8adcbf6de30c4e11830d69086c10983aeefc45 /sql/set_var.h
parent2c1542893d85a822f246bdf6cb9468d4561d0869 (diff)
downloadmariadb-git-3d0f6bf0331087cfc3317fc835355aeb05e81178.tar.gz
We now require SUPER privilege for SET PSEUDO_THREAD_ID.
mysql-test/r/rpl_temporary.result: result update mysql-test/t/rpl_temporary.test: test that PSEUDO_THREAD_ID now requires SUPER. sql/set_var.cc: Class for pseudo_thread_id (it used to be sys_var_thd_ulong, but we decided to require the SUPER privilege so we needed a check() function, which sys_var_thd_ulong does not feature (check() is virtual in sys_var and in sys_var_thd_ulong too). sql/set_var.h: Class for pseudo_thread_id
Diffstat (limited to 'sql/set_var.h')
-rw-r--r--sql/set_var.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/set_var.h b/sql/set_var.h
index 998d61ff2d1..5a0fbd21809 100644
--- a/sql/set_var.h
+++ b/sql/set_var.h
@@ -212,6 +212,15 @@ public:
byte *value_ptr(THD *thd, enum_var_type type);
};
+class sys_var_pseudo_thread_id :public sys_var_thd_ulong
+{
+public:
+ sys_var_pseudo_thread_id(const char *name_arg, ulong SV::*offset_arg)
+ :sys_var_thd_ulong(name_arg, offset_arg)
+ {}
+ bool check(THD *thd, set_var *var);
+};
+
class sys_var_thd_ha_rows :public sys_var_thd
{