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
bed482c2
Commit
bed482c2
authored
May 26, 2007
by
igor@olga.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoided warnings on Windows.
parent
7ebff7d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sql/sql_select.cc
sql/sql_select.cc
+5
-5
No files found.
sql/sql_select.cc
View file @
bed482c2
...
...
@@ -5905,13 +5905,13 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond)
*/
/* First push down constant conditions from on expressions */
for
(
JOIN_TAB
*
tab
=
join
->
join_tab
+
join
->
const_tables
;
tab
<
join
->
join_tab
+
join
->
tables
;
tab
++
)
for
(
JOIN_TAB
*
join_
tab
=
join
->
join_tab
+
join
->
const_tables
;
join_tab
<
join
->
join_tab
+
join
->
tables
;
join_
tab
++
)
{
if
(
*
tab
->
on_expr_ref
)
if
(
*
join_
tab
->
on_expr_ref
)
{
JOIN_TAB
*
cond_tab
=
tab
->
first_inner
;
COND
*
tmp
=
make_cond_for_table
(
*
tab
->
on_expr_ref
,
JOIN_TAB
*
cond_tab
=
join_
tab
->
first_inner
;
COND
*
tmp
=
make_cond_for_table
(
*
join_
tab
->
on_expr_ref
,
join
->
const_table_map
,
(
table_map
)
0
);
if
(
!
tmp
)
...
...
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