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
7b0afa3a
Commit
7b0afa3a
authored
May 30, 2003
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Plain Diff
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
into sanja.is.com.ua:/home/bell/mysql/bk/work-mem_root-4.1
parents
56c77cc2
ac8180c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
sql/sql_parse.cc
sql/sql_parse.cc
+8
-6
No files found.
sql/sql_parse.cc
View file @
7b0afa3a
...
...
@@ -59,7 +59,7 @@ static void refresh_status(void);
static
bool
append_file_to_dir
(
THD
*
thd
,
char
**
filename_ptr
,
char
*
table_name
);
inline
bool
single_table_command_access
(
THD
*
thd
,
ulong
privilege
,
static
bool
single_table_command_access
(
THD
*
thd
,
ulong
privilege
,
TABLE_LIST
*
tables
,
int
*
res
);
const
char
*
any_db
=
"*any*"
;
// Special symbol for check_access
...
...
@@ -3123,7 +3123,7 @@ error:
1 - access denied
*/
inline
bool
single_table_command_access
(
THD
*
thd
,
ulong
privilege
,
static
bool
single_table_command_access
(
THD
*
thd
,
ulong
privilege
,
TABLE_LIST
*
tables
,
int
*
res
)
{
...
...
@@ -3135,12 +3135,14 @@ inline bool single_table_command_access(THD *thd, ulong privilege,
tables
->
next
=
0
;
if
(
grant_option
&&
check_grant
(
thd
,
privilege
,
tables
))
return
1
;
tables
->
next
=
subselects_tables
;
// check rights on tables of subselect (if exists)
if
(
subselects_tables
&&
(
*
res
=
check_table_access
(
thd
,
SELECT_ACL
,
subselects_tables
)))
return
1
;
if
(
subselects_tables
)
{
tables
->
next
=
subselects_tables
;
if
((
*
res
=
check_table_access
(
thd
,
SELECT_ACL
,
subselects_tables
)))
return
1
;
}
return
0
;
}
...
...
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