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
438ed496
Commit
438ed496
authored
Jun 23, 2003
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing one fix.
parent
833e3db2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
sql/sql_acl.cc
sql/sql_acl.cc
+4
-9
No files found.
sql/sql_acl.cc
View file @
438ed496
...
...
@@ -2038,7 +2038,7 @@ int mysql_table_grant(THD *thd, TABLE_LIST *table_list,
check
->
column
.
c_ptr
(),
table_list
->
alias
);
DBUG_RETURN
(
-
1
);
}
column_priv
|=
check
->
rights
&
COL_ACLS
;
column_priv
|=
check
->
rights
|
(
rights
&
COL_ACLS
)
;
}
close_thread_tables
(
thd
);
}
...
...
@@ -2173,12 +2173,7 @@ int mysql_table_grant(THD *thd, TABLE_LIST *table_list,
}
else
{
/*
This code makes sure that if there is X privilege on the entire table and
X can be also a column privilege, that granting column privilege does not
revoke a table privilege.
*/
column_priv
&=
~
(
grant_table
->
privs
&
~
grant_table
->
cols
);
column_priv
|=
grant_table
->
cols
;
}
...
...
@@ -2191,13 +2186,13 @@ int mysql_table_grant(THD *thd, TABLE_LIST *table_list,
{
// Crashend table ??
result
=
-
1
;
/* purecov: deadcode */
}
else
if
(
tables
[
2
].
table
&&
(
column_priv
|
revoke_grant
)
)
else
if
(
tables
[
2
].
table
)
{
if
((
replace_column_table
(
grant_table
,
tables
[
2
].
table
,
*
Str
,
columns
,
table_list
->
db
,
table_list
->
real_name
,
(
revoke_grant
)
?
rights
:
column_priv
,
revoke_grant
)))
rights
,
revoke_grant
)))
{
result
=
-
1
;
}
...
...
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