diff options
author | unknown <monty@mashka.mysql.fi> | 2002-09-22 18:02:39 +0300 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2002-09-22 18:02:39 +0300 |
commit | 92dd03932df128eed8164bc3c85e7c9d3306e77b (patch) | |
tree | 7f6749bdfc76c04b8808fc36f0afc50291749ae8 /sql/set_var.h | |
parent | 6546f36e2d8378f224114b88cae3806684990162 (diff) | |
download | mariadb-git-92dd03932df128eed8164bc3c85e7c9d3306e77b.tar.gz |
Don't give the anonymous user create temp table or lock tables privileges.
SET PASSWORD=... closed connection on error.
Docs/manual.texi:
Changelog
mysql-test/r/rpl_rotate_logs.result:
Fixed test
scripts/mysql_fix_privilege_tables.sh:
Don't give the anonymous user create temp table or lock tables privileges.
sql/set_var.cc:
SET PASSWORD=... closed connection on error, because MySQL sent the error message twice.
sql/set_var.h:
SET PASSWORD=... closed connection on error, because MySQL sent the error message twice.
sql/sql_acl.cc:
Added function comment
sql/sql_db.cc:
Change type of variable
sql/sql_parse.cc:
SET PASSWORD=... closed connection on error, because MySQL sent the error message twice.
tests/grant.pl:
Updated grant test case to work with latest MySQL version
tests/grant.res:
updated test results
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; |