summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorunknown <monty@mashka.mysql.fi>2002-09-22 18:02:39 +0300
committerunknown <monty@mashka.mysql.fi>2002-09-22 18:02:39 +0300
commit92dd03932df128eed8164bc3c85e7c9d3306e77b (patch)
tree7f6749bdfc76c04b8808fc36f0afc50291749ae8 /sql/sql_parse.cc
parent6546f36e2d8378f224114b88cae3806684990162 (diff)
downloadmariadb-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/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index b7aa826bf40..9e834e3cab9 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -2202,9 +2202,7 @@ mysql_execute_command(void)
break;
}
case SQLCOM_SET_OPTION:
- if (sql_set_variables(thd, &lex->var_list))
- res= -1;
- else
+ if (!(res=sql_set_variables(thd, &lex->var_list)))
send_ok(&thd->net);
break;
case SQLCOM_UNLOCK_TABLES: