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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
0e94cd14
Commit
0e94cd14
authored
Oct 18, 2005
by
unknown
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
34a2fa26
89a5b23d
Changes
3
Show 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 @
0e94cd14
...
...
@@ -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 @
0e94cd14
...
...
@@ -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 @
0e94cd14
...
...
@@ -1487,6 +1487,11 @@ bool change_password(THD *thd, const char *host, const char *user,
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