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
091743c6
Commit
091743c6
authored
Jul 17, 2021
by
Rucha Deodhar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing the condition in the for loop and putting it in one place to
make code more readable and cleaner.
parent
8cb2027b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
sql/sql_base.cc
sql/sql_base.cc
+8
-6
No files found.
sql/sql_base.cc
View file @
091743c6
...
@@ -8032,12 +8032,14 @@ insert_fields(THD *thd, Name_resolution_context *context, const char *db_name,
...
@@ -8032,12 +8032,14 @@ insert_fields(THD *thd, Name_resolution_context *context, const char *db_name,
else treat natural joins as leaves and do not iterate over their underlying
else treat natural joins as leaves and do not iterate over their underlying
tables.
tables.
*/
*/
for
(
TABLE_LIST
*
tables
=
(
table_name
?
context
->
table_list
:
TABLE_LIST
*
first
=
context
->
first_name_resolution_table
;
context
->
first_name_resolution_table
);
TABLE_LIST
*
TABLE_LIST
::*
next
=
&
TABLE_LIST
::
next_name_resolution_table
;
tables
;
if
(
table_name
)
tables
=
(
table_name
?
tables
->
next_local
:
{
tables
->
next_name_resolution_table
)
first
=
context
->
table_list
;
)
next
=
&
TABLE_LIST
::
next_local
;
}
for
(
TABLE_LIST
*
tables
=
first
;
tables
;
tables
=
tables
->*
next
)
{
{
Field
*
field
;
Field
*
field
;
TABLE
*
table
=
tables
->
table
;
TABLE
*
table
=
tables
->
table
;
...
...
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