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
408f2619
Commit
408f2619
authored
Oct 18, 2005
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Plain Diff
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0
into sanja.is.com.ua:/home/bell/mysql/bk/work-bug4-5.0
parents
d3fbb135
f95489f9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
mysql-test/r/skip_grants.result
mysql-test/r/skip_grants.result
+4
-0
mysql-test/t/skip_grants.test
mysql-test/t/skip_grants.test
+8
-0
sql/sql_acl.cc
sql/sql_acl.cc
+5
-0
No files found.
mysql-test/r/skip_grants.result
View file @
408f2619
...
...
@@ -8,3 +8,7 @@ ERROR HY000: View definer is not fully qualified
drop table t1;
create procedure f1() select 1;
drop procedure f1;
create table t1 (a int);
create definer='user'@'host' sql security definer view v1 as select * from t1;
drop view v1;
drop table t1;
mysql-test/t/skip_grants.test
View file @
408f2619
...
...
@@ -19,3 +19,11 @@ drop table t1;
#
create
procedure
f1
()
select
1
;
drop
procedure
f1
;
#
# BUG#13504: creation view with DEFINER clause if --skip-grant-tables
#
create
table
t1
(
a
int
);
create
definer
=
'user'
@
'host'
sql
security
definer
view
v1
as
select
*
from
t1
;
drop
view
v1
;
drop
table
t1
;
sql/sql_acl.cc
View file @
408f2619
...
...
@@ -1487,6 +1487,11 @@ end:
bool
is_acl_user
(
const
char
*
host
,
const
char
*
user
)
{
bool
res
;
/* --skip-grants */
if
(
!
initialized
)
return
TRUE
;
VOID
(
pthread_mutex_lock
(
&
acl_cache
->
lock
));
res
=
find_acl_user
(
host
,
user
,
TRUE
)
!=
NULL
;
VOID
(
pthread_mutex_unlock
(
&
acl_cache
->
lock
));
...
...
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