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
78a9e47e
Commit
78a9e47e
authored
Jun 02, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added update_used_tables to add_found_match_trig_cond, to make valgrind happy
parent
2d008198
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
sql/sql_select.cc
sql/sql_select.cc
+5
-4
No files found.
sql/sql_select.cc
View file @
78a9e47e
...
...
@@ -5233,7 +5233,10 @@ add_found_match_trig_cond(JOIN_TAB *tab, COND *cond, JOIN_TAB *root_tab)
tmp
=
new
Item_func_trig_cond
(
tmp
,
&
tab
->
found
);
}
if
(
tmp
)
{
tmp
->
quick_fix_field
();
tmp
->
update_used_tables
();
}
return
tmp
;
}
...
...
@@ -5454,7 +5457,6 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond)
*/
if
(
cond
)
{
COND
*
unguarded
=
tmp
;
/*
Because of QUICK_GROUP_MIN_MAX_SELECT there may be a select without
a cond, so neutralize the hack above.
...
...
@@ -5465,11 +5467,10 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond)
/* Push condition to storage engine if this is enabled
and the condition is not guarded */
tab
->
table
->
file
->
pushed_cond
=
NULL
;
if
(
thd
->
variables
.
engine_condition_pushdown
&&
unguarded
==
tmp
)
if
(
thd
->
variables
.
engine_condition_pushdown
)
{
COND
*
push_cond
=
make_cond_for_table
(
cond
,
current_map
,
current_map
);
make_cond_for_table
(
tmp
,
current_map
,
current_map
);
if
(
push_cond
)
{
/* Push condition to handler */
...
...
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