Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
c6742434
Commit
c6742434
authored
Jun 07, 2007
by
kaa@polly.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge polly.local:/home/kaa/src/maint/bug28895/my50-bug28895
into polly.local:/home/kaa/src/maint/mysql-5.0-maint
parents
d2fe24d1
35dd1fc5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
mysql-test/r/view_grant.result
mysql-test/r/view_grant.result
+2
-2
sql/sql_acl.cc
sql/sql_acl.cc
+7
-6
No files found.
mysql-test/r/view_grant.result
View file @
c6742434
...
@@ -601,9 +601,9 @@ Warnings:
...
@@ -601,9 +601,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 `t
est`.`t
1`.`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;
...
...
sql/sql_acl.cc
View file @
c6742434
...
@@ -978,14 +978,15 @@ bool acl_getroot_no_password(Security_context *sctx, char *user, char *host,
...
@@ -978,14 +978,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
;
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment