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
4246f400
Commit
4246f400
authored
Jul 20, 2004
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed case when frivileges check switched off (BUG#4631)
parent
3e40d596
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
4 deletions
+30
-4
mysql-test/r/view.result
mysql-test/r/view.result
+2
-2
mysql-test/r/view_skip_grants.result
mysql-test/r/view_skip_grants.result
+6
-0
mysql-test/t/view.test
mysql-test/t/view.test
+2
-2
mysql-test/t/view_skip_grants-master.opt
mysql-test/t/view_skip_grants-master.opt
+1
-0
mysql-test/t/view_skip_grants.test
mysql-test/t/view_skip_grants.test
+14
-0
sql/sql_acl.cc
sql/sql_acl.cc
+5
-0
No files found.
mysql-test/r/view.result
View file @
4246f400
drop table if exists t1,t2;
drop table if exists t1,t2
,v1,v2,v3,v4,v5,v6
;
drop view if exists v1,v2,v3,v4,v5,v6;
drop view if exists
t1,t2,
v1,v2,v3,v4,v5,v6;
drop database if exists mysqltest;
drop database if exists mysqltest;
use test;
use test;
create view v1 (c,d) as select a,b from t1;
create view v1 (c,d) as select a,b from t1;
...
...
mysql-test/r/view_skip_grants.result
0 → 100644
View file @
4246f400
drop table if exists t1,v1;
drop view if exists t1,v1;
use test;
create table t1 (field1 INT);
CREATE VIEW v1 AS SELECT field1 FROM t1;
drop view v1;
mysql-test/t/view.test
View file @
4246f400
--
disable_warnings
--
disable_warnings
drop
table
if
exists
t1
,
t2
;
drop
table
if
exists
t1
,
t2
,
v1
,
v2
,
v3
,
v4
,
v5
,
v6
;
drop
view
if
exists
v1
,
v2
,
v3
,
v4
,
v5
,
v6
;
drop
view
if
exists
t1
,
t2
,
v1
,
v2
,
v3
,
v4
,
v5
,
v6
;
drop
database
if
exists
mysqltest
;
drop
database
if
exists
mysqltest
;
--
enable_warnings
--
enable_warnings
use
test
;
use
test
;
...
...
mysql-test/t/view_skip_grants-master.opt
0 → 100644
View file @
4246f400
--skip-grant-tables
mysql-test/t/view_skip_grants.test
0 → 100644
View file @
4246f400
--
disable_warnings
drop
table
if
exists
t1
,
v1
;
drop
view
if
exists
t1
,
v1
;
--
enable_warnings
use
test
;
#
# test that we can create VIEW if privileges check switched off
#
create
table
t1
(
field1
INT
);
CREATE
VIEW
v1
AS
SELECT
field1
FROM
t1
;
drop
view
v1
;
drop
table
t1
sql/sql_acl.cc
View file @
4246f400
...
@@ -3838,6 +3838,11 @@ void fill_effective_table_privileges(THD *thd, GRANT_INFO *grant,
...
@@ -3838,6 +3838,11 @@ void fill_effective_table_privileges(THD *thd, GRANT_INFO *grant,
{
{
/* global privileges */
/* global privileges */
grant
->
privilege
=
thd
->
master_access
;
grant
->
privilege
=
thd
->
master_access
;
/* if privileges ignored (--skip-grant-tables) above is enough */
if
(
!
grant_option
)
return
;
/* db privileges */
/* db privileges */
grant
->
privilege
|=
acl_get
(
thd
->
host
,
thd
->
ip
,
thd
->
priv_user
,
db
,
0
);
grant
->
privilege
|=
acl_get
(
thd
->
host
,
thd
->
ip
,
thd
->
priv_user
,
db
,
0
);
/* table privileges */
/* table privileges */
...
...
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