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
dd6ad380
Commit
dd6ad380
authored
Apr 21, 2021
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup: merge walk_items_for_table_list with walk_table_functions_for_list
parent
4930f9c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
sql/item_subselect.cc
sql/item_subselect.cc
+14
-4
No files found.
sql/item_subselect.cc
View file @
dd6ad380
...
@@ -685,6 +685,12 @@ bool Item_subselect::is_expensive()
...
@@ -685,6 +685,12 @@ bool Item_subselect::is_expensive()
}
}
/*
@brief
Apply item processor for all scalar (i.e. Item*) expressions that
occur in the nested join.
*/
static
static
int
walk_items_for_table_list
(
Item_processor
processor
,
int
walk_items_for_table_list
(
Item_processor
processor
,
bool
walk_subquery
,
void
*
argument
,
bool
walk_subquery
,
void
*
argument
,
...
@@ -699,6 +705,14 @@ int walk_items_for_table_list(Item_processor processor,
...
@@ -699,6 +705,14 @@ int walk_items_for_table_list(Item_processor processor,
if
((
res
=
table
->
on_expr
->
walk
(
processor
,
walk_subquery
,
argument
)))
if
((
res
=
table
->
on_expr
->
walk
(
processor
,
walk_subquery
,
argument
)))
return
res
;
return
res
;
}
}
if
(
Table_function_json_table
*
tf
=
table
->
table_function
)
{
if
((
res
=
tf
->
walk_items
(
processor
,
walk_subquery
,
argument
)))
{
return
res
;
}
}
if
(
table
->
nested_join
)
if
(
table
->
nested_join
)
{
{
if
((
res
=
walk_items_for_table_list
(
processor
,
walk_subquery
,
argument
,
if
((
res
=
walk_items_for_table_list
(
processor
,
walk_subquery
,
argument
,
...
@@ -807,10 +821,6 @@ bool Item_subselect::walk(Item_processor processor, bool walk_subquery,
...
@@ -807,10 +821,6 @@ bool Item_subselect::walk(Item_processor processor, bool walk_subquery,
*
lex
->
join_list
))
*
lex
->
join_list
))
return
1
;
return
1
;
if
(
walk_table_functions_for_list
(
processor
,
walk_subquery
,
argument
,
*
lex
->
join_list
))
return
1
;
while
(
Item
*
item
=
li
++
)
while
(
Item
*
item
=
li
++
)
{
{
if
(
item
->
walk
(
processor
,
walk_subquery
,
argument
))
if
(
item
->
walk
(
processor
,
walk_subquery
,
argument
))
...
...
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