Commit 8303cfd9 authored by kaa@polly.local's avatar kaa@polly.local

Merge polly.local:/home/kaa/src/maint/bug28895/my51-bug28895

into  polly.local:/home/kaa/src/maint/mysql-5.1-maint
parents 13adcedc c48b9d6c
...@@ -603,9 +603,9 @@ Warnings: ...@@ -603,9 +603,9 @@ Warnings:
Note 1449 There is no 'no-such-user'@'localhost' registered Note 1449 There is no 'no-such-user'@'localhost' registered
SHOW CREATE VIEW v; SHOW CREATE VIEW v;
View Create View View Create View
v CREATE ALGORITHM=UNDEFINED DEFINER=`no-such-user`@`localhost` SQL SECURITY DEFINER VIEW `v` AS select `t1`.`a` AS `a` from `t1` v CREATE ALGORITHM=UNDEFINED DEFINER=`no-such-user`@`localhost` SQL SECURITY DEFINER VIEW `v` AS select `test`.`t1`.`a` AS `a` from `t1`
Warnings: Warnings:
Note 1449 There is no 'no-such-user'@'localhost' registered Warning 1356 View 'test.v' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
SELECT * FROM v; SELECT * FROM v;
ERROR HY000: There is no 'no-such-user'@'localhost' registered ERROR HY000: There is no 'no-such-user'@'localhost' registered
DROP VIEW v; DROP VIEW v;
......
...@@ -1110,14 +1110,15 @@ bool acl_getroot_no_password(Security_context *sctx, char *user, char *host, ...@@ -1110,14 +1110,15 @@ bool acl_getroot_no_password(Security_context *sctx, char *user, char *host,
*/ */
for (i=0 ; i < acl_users.elements ; i++) for (i=0 ; i < acl_users.elements ; i++)
{ {
acl_user= dynamic_element(&acl_users,i,ACL_USER*); ACL_USER *acl_user_tmp= dynamic_element(&acl_users,i,ACL_USER*);
if ((!acl_user->user && !user[0]) || if ((!acl_user_tmp->user && !user[0]) ||
(acl_user->user && strcmp(user, acl_user->user) == 0)) (acl_user_tmp->user && strcmp(user, acl_user_tmp->user) == 0))
{ {
if (compare_hostname(&acl_user->host, host, ip)) if (compare_hostname(&acl_user_tmp->host, host, ip))
{ {
res= 0; acl_user= acl_user_tmp;
break; res= 0;
break;
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment