TRAFODION-2265

Parse ex_conv_clause::convInstrStrInfo at sql process startup
(in sqInit) into a sparsely populated index for quick reference by
ex_conv_clause::findInstruction.


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/fe5ca994
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/fe5ca994
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/fe5ca994

Branch: refs/heads/master
Commit: fe5ca994159bd59fd9f15603a5e37df959c7f0ca
Parents: 9278776
Author: Narendra Goyal <narendra.go...@esgyn.com>
Authored: Sat Oct 8 18:11:26 2016 +0000
Committer: Narendra Goyal <narendra.go...@esgyn.com>
Committed: Sat Oct 8 18:11:26 2016 +0000

----------------------------------------------------------------------
 core/sql/exp/exp_fixup.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/fe5ca994/core/sql/exp/exp_fixup.cpp
----------------------------------------------------------------------
diff --git a/core/sql/exp/exp_fixup.cpp b/core/sql/exp/exp_fixup.cpp
index a5ad20d..12fa932 100644
--- a/core/sql/exp/exp_fixup.cpp
+++ b/core/sql/exp/exp_fixup.cpp
@@ -1830,7 +1830,8 @@ int ex_conv_clause::getInstrOffset(short pv_op1)
     ex_conv_clause::populateInstrOffsetIndex();
   }
 
-  if ((pv_op1 < 0) && (pv_op1 > sv_MaxOpTypeValue)) {
+  if ((pv_op1 < 0) || 
+      (pv_op1 > sv_MaxOpTypeValue)) {
     return -1;
   }
 

Reply via email to