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
e0c3e769
Commit
e0c3e769
authored
Oct 24, 2004
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-view-5.0
parents
4970bdab
32880072
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
2 deletions
+28
-2
mysql-test/r/view.result
mysql-test/r/view.result
+7
-0
mysql-test/t/view.test
mysql-test/t/view.test
+18
-0
sql/sql_acl.cc
sql/sql_acl.cc
+3
-2
No files found.
mysql-test/r/view.result
View file @
e0c3e769
...
...
@@ -1626,3 +1626,10 @@ Field 3,'Field 4|
|Field 6| | 'Field 7'|
drop view v1;
drop table t1;
create database mysqltest;
create table mysqltest.t1 (a int);
grant all privileges on mysqltest.* to mysqltest_1@localhost;
use mysqltest;
create view v1 as select * from t1;
revoke all privileges on mysqltest.* from mysqltest_1@localhost;
drop database mysqltest;
mysql-test/t/view.test
View file @
e0c3e769
...
...
@@ -1554,3 +1554,21 @@ select concat('|',a,'|'), concat('|',b,'|') from v1;
drop
view
v1
;
drop
table
t1
;
#
# user with global DB privileges
#
connection
root
;
--
disable_warnings
create
database
mysqltest
;
--
enable_warnings
create
table
mysqltest
.
t1
(
a
int
);
grant
all
privileges
on
mysqltest
.*
to
mysqltest_1
@
localhost
;
connection
user1
;
use
mysqltest
;
create
view
v1
as
select
*
from
t1
;
connection
root
;
revoke
all
privileges
on
mysqltest
.*
from
mysqltest_1
@
localhost
;
drop
database
mysqltest
;
sql/sql_acl.cc
View file @
e0c3e769
...
...
@@ -3889,12 +3889,13 @@ void fill_effective_table_privileges(THD *thd, GRANT_INFO *grant,
/* global privileges */
grant
->
privilege
=
thd
->
master_access
;
/* db privileges */
grant
->
privilege
|=
acl_get
(
thd
->
host
,
thd
->
ip
,
thd
->
priv_user
,
db
,
0
);
/* if privileges ignored (--skip-grant-tables) above is enough */
if
(
!
grant_option
)
return
;
/* db privileges */
grant
->
privilege
|=
acl_get
(
thd
->
host
,
thd
->
ip
,
thd
->
priv_user
,
db
,
0
);
/* table privileges */
if
(
grant
->
version
!=
grant_version
)
{
...
...
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