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
66f881a8
Commit
66f881a8
authored
May 08, 2005
by
mskold@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed call to cond_push for empty cond
parent
bea71274
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+13
-16
sql/sql_select.cc
sql/sql_select.cc
+6
-3
No files found.
sql/ha_ndbcluster.cc
View file @
66f881a8
...
...
@@ -6106,24 +6106,21 @@ COND*
ha_ndbcluster
::
cond_push
(
const
COND
*
cond
)
{
DBUG_ENTER
(
"cond_push"
);
if
(
cond
)
{
Ndb_cond_stack
*
ndb_cond
=
new
Ndb_cond_stack
();
DBUG_EXECUTE
(
"where"
,
print_where
((
COND
*
)
cond
,
m_tabname
););
if
(
m_cond_stack
)
Ndb_cond_stack
*
ndb_cond
=
new
Ndb_cond_stack
();
DBUG_EXECUTE
(
"where"
,
print_where
((
COND
*
)
cond
,
m_tabname
););
if
(
m_cond_stack
)
ndb_cond
->
next
=
m_cond_stack
;
else
ndb_cond
->
next
=
NULL
;
m_cond_stack
=
ndb_cond
;
if
(
serialize_cond
(
cond
,
ndb_cond
))
{
else
ndb_cond
->
next
=
NULL
;
m_cond_stack
=
ndb_cond
;
if
(
serialize_cond
(
cond
,
ndb_cond
))
{
DBUG_RETURN
(
NULL
);
}
else
{
cond_pop
();
}
}
else
{
cond_pop
();
}
DBUG_RETURN
(
cond
);
}
...
...
sql/sql_select.cc
View file @
66f881a8
...
...
@@ -5406,9 +5406,12 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond)
COND
*
push_cond
=
make_cond_for_table
(
cond
,
current_map
,
current_map
);
tab
->
table
->
file
->
pushed_cond
=
NULL
;
/* Push condition to handler */
if
(
!
tab
->
table
->
file
->
cond_push
(
push_cond
))
tab
->
table
->
file
->
pushed_cond
=
push_cond
;
if
(
push_cond
)
{
/* Push condition to handler */
if
(
!
tab
->
table
->
file
->
cond_push
(
push_cond
))
tab
->
table
->
file
->
pushed_cond
=
push_cond
;
}
}
}
else
...
...
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