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
717455ba
Commit
717455ba
authored
Mar 10, 2003
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A fix for privilege checking bug.
parent
29999926
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
sql/sql_parse.cc
sql/sql_parse.cc
+7
-1
No files found.
sql/sql_parse.cc
View file @
717455ba
...
@@ -1840,8 +1840,14 @@ mysql_execute_command(void)
...
@@ -1840,8 +1840,14 @@ mysql_execute_command(void)
break
;
break
;
}
}
case
SQLCOM_UPDATE
:
case
SQLCOM_UPDATE
:
if
(
check_access
(
thd
,
UPDATE_ACL
,
tables
->
db
,
&
tables
->
grant
.
privilege
))
TABLE_LIST
*
table
;
if
(
check_db_used
(
thd
,
tables
))
goto
error
;
goto
error
;
for
(
table
=
tables
;
table
;
table
=
table
->
next
)
{
if
(
check_access
(
thd
,
UPDATE_ACL
,
table
->
db
,
&
table
->
grant
.
privilege
))
goto
error
;
}
if
(
grant_option
&&
check_grant
(
thd
,
UPDATE_ACL
,
tables
))
if
(
grant_option
&&
check_grant
(
thd
,
UPDATE_ACL
,
tables
))
goto
error
;
goto
error
;
if
(
select_lex
->
item_list
.
elements
!=
lex
->
value_list
.
elements
)
if
(
select_lex
->
item_list
.
elements
!=
lex
->
value_list
.
elements
)
...
...
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