You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by db...@apache.org on 2017/03/27 23:04:35 UTC
[2/3] incubator-trafodion git commit: Fix cut-and-paste error
Fix cut-and-paste error
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/47e31f59
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/47e31f59
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/47e31f59
Branch: refs/heads/master
Commit: 47e31f59fd79590a9d100857e1343e10be36f7b0
Parents: 66d837f
Author: Dave Birdsall <db...@apache.org>
Authored: Sat Mar 25 21:34:56 2017 +0000
Committer: Dave Birdsall <db...@apache.org>
Committed: Sat Mar 25 21:34:56 2017 +0000
----------------------------------------------------------------------
core/sql/optimizer/ItemExpr.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/47e31f59/core/sql/optimizer/ItemExpr.cpp
----------------------------------------------------------------------
diff --git a/core/sql/optimizer/ItemExpr.cpp b/core/sql/optimizer/ItemExpr.cpp
index 6e2d40b..b45faae 100644
--- a/core/sql/optimizer/ItemExpr.cpp
+++ b/core/sql/optimizer/ItemExpr.cpp
@@ -1062,7 +1062,7 @@ NABoolean ItemExpr::useStatsForPred()
{
NABoolean negate = FALSE;
ConstValue * c = startPosition->castToConstValue(negate);
- if (c->canGetApproximateNumericValue() &&
+ if (c->canGetExactNumericValue() &&
(c->getExactNumericValue() == 1))
return TRUE;
}