You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by se...@apache.org on 2016/05/08 01:24:28 UTC
[3/4] incubator-trafodion git commit: [TRAFODION-1920] disable pCode
for ex_conv_clause
[TRAFODION-1920] disable pCode for ex_conv_clause
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/cd47546e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/cd47546e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/cd47546e
Branch: refs/heads/master
Commit: cd47546ebcb3048072c03f91f8c21c4e33ff2e89
Parents: e15da4e
Author: Liu Ming <mi...@esgyn.cn>
Authored: Fri May 6 00:57:57 2016 +0000
Committer: Liu Ming <mi...@esgyn.cn>
Committed: Fri May 6 00:57:57 2016 +0000
----------------------------------------------------------------------
core/sql/exp/ExpPCodeClauseGen.cpp | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/cd47546e/core/sql/exp/ExpPCodeClauseGen.cpp
----------------------------------------------------------------------
diff --git a/core/sql/exp/ExpPCodeClauseGen.cpp b/core/sql/exp/ExpPCodeClauseGen.cpp
index 952a42d..6868a3d 100644
--- a/core/sql/exp/ExpPCodeClauseGen.cpp
+++ b/core/sql/exp/ExpPCodeClauseGen.cpp
@@ -2636,6 +2636,7 @@ ex_expr::exp_return_type ex_conv_clause::pCodeGenerate(Space *space, UInt32 f) {
// For debugging...
if(getenv("PCODE_NO_CONV")) return ex_clause::pCodeGenerate(space, f);
#endif
+ if( ( flags_ & CONV_TO_NULL_WHEN_ERROR ) != 0 ) return ex_clause::pCodeGenerate(space, f);
// If there is a third argument to the convert, it indicates that
// a data conversion flag is present. This is used for converting keys