diff options
author | monty@mashka.mysql.fi <> | 2002-09-22 18:02:39 +0300 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2002-09-22 18:02:39 +0300 |
commit | 9c123d0c0b8637a91a1af87e93cc0b2428f3e9a7 (patch) | |
tree | 7f6749bdfc76c04b8808fc36f0afc50291749ae8 /sql/set_var.h | |
parent | 378d977d28c4583db43511e94b5c128f71b3304a (diff) | |
download | mariadb-git-9c123d0c0b8637a91a1af87e93cc0b2428f3e9a7.tar.gz |
Don't give the anonymous user create temp table or lock tables privileges.
SET PASSWORD=... closed connection on error.
Diffstat (limited to 'sql/set_var.h')
-rw-r--r-- | sql/set_var.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sql/set_var.h b/sql/set_var.h index cbe479b7902..c43cdbfd63e 100644 --- a/sql/set_var.h +++ b/sql/set_var.h @@ -359,8 +359,8 @@ class set_var_base :public Sql_alloc public: set_var_base() {} virtual ~set_var_base() {} - virtual bool check(THD *thd)=0; /* To check privileges etc. */ - virtual bool update(THD *thd)=0; /* To set the value */ + virtual int check(THD *thd)=0; /* To check privileges etc. */ + virtual int update(THD *thd)=0; /* To set the value */ }; @@ -394,8 +394,8 @@ public: else value=value_arg; } - bool check(THD *thd); - bool update(THD *thd); + int check(THD *thd); + int update(THD *thd); }; @@ -408,8 +408,8 @@ public: set_var_user(Item_func_set_user_var *item) :user_var_item(item) {} - bool check(THD *thd); - bool update(THD *thd); + int check(THD *thd); + int update(THD *thd); }; /* For SET PASSWORD */ @@ -422,8 +422,8 @@ public: set_var_password(LEX_USER *user_arg,char *password_arg) :user(user_arg), password(password_arg) {} - bool check(THD *thd); - bool update(THD *thd); + int check(THD *thd); + int update(THD *thd); }; @@ -434,7 +434,7 @@ public: void set_var_init(); void set_var_free(); sys_var *find_sys_var(const char *str, uint length=0); -bool sql_set_variables(THD *thd, List<set_var_base> *var_list); +int sql_set_variables(THD *thd, List<set_var_base> *var_list); void fix_delay_key_write(THD *thd, enum_var_type type); extern sys_var_str sys_charset; |