summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjimw@mysql.com <>2005-03-17 10:00:45 -0800
committerjimw@mysql.com <>2005-03-17 10:00:45 -0800
commitd5b7909448b91e1db23b9857f59c1afa2c3a6d0a (patch)
treeb40c8865710b0e298f033cb9696316472983ff06
parent3828b47807f8d65fc563c26b9e608d6ff152328d (diff)
parent4ca5b3c73b14162d14f624dd1b7b217d345169ff (diff)
downloadmariadb-git-d5b7909448b91e1db23b9857f59c1afa2c3a6d0a.tar.gz
Merge mysqldev@production.mysql.com:my/mysql-5.0-build
into mysql.com:/home/jimw/my/mysql-5.0-build
-rw-r--r--sql/sql_parse.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index a39ccacfe00..cc5bd90e4f2 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -3633,10 +3633,10 @@ unsent_create_error:
while ((user=user_list++))
{
if (user->password.str &&
- strcmp(thd->user, user->user.str) ||
- user->host.str &&
- my_strcasecmp(system_charset_info,
- user->host.str, thd->host_or_ip))
+ (strcmp(thd->user, user->user.str) ||
+ user->host.str &&
+ my_strcasecmp(system_charset_info,
+ user->host.str, thd->host_or_ip)))
{
if (check_access(thd, UPDATE_ACL, "mysql", 0, 1, 0))
goto error;