trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sand...@apache.org
Subject [6/7] incubator-trafodion git commit: fix LOB size error for dynamic parameters
Date Mon, 31 Jul 2017 05:41:55 GMT
fix LOB size error for dynamic parameters


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

Branch: refs/heads/master
Commit: 8d611fc2fe780f475c70cdecc4df19f092ac1004
Parents: dc5b137
Author: Weiqing Xu <weiqing.xu@esgyn.cn>
Authored: Fri Jul 28 09:58:11 2017 +0000
Committer: Weiqing Xu <weiqing.xu@esgyn.cn>
Committed: Fri Jul 28 09:58:11 2017 +0000

----------------------------------------------------------------------
 core/sql/optimizer/BindItemExpr.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/8d611fc2/core/sql/optimizer/BindItemExpr.cpp
----------------------------------------------------------------------
diff --git a/core/sql/optimizer/BindItemExpr.cpp b/core/sql/optimizer/BindItemExpr.cpp
index 78201f4..2b77bc2 100644
--- a/core/sql/optimizer/BindItemExpr.cpp
+++ b/core/sql/optimizer/BindItemExpr.cpp
@@ -6115,13 +6115,13 @@ ItemExpr *Assign::bindNode(BindWA *bindWA)
                   newType = new SQLClob((CmpCommon::getDefaultNumeric(LOB_MAX_SIZE) * 1024
* 1024),
                          lobType.getLobStorage(),
                          TRUE, FALSE, TRUE,
-                         lob_input_limit_for_batch > lob_size ? lob_input_limit_for_batch
: lob_size);
+                         lob_input_limit_for_batch < lob_size ? lob_input_limit_for_batch
: lob_size);
               }
               else {
               newType = new SQLBlob((CmpCommon::getDefaultNumeric(LOB_MAX_SIZE)*1024*1024),
                                              lobType.getLobStorage(), 
                                              TRUE, FALSE, TRUE, 
-                                             lob_input_limit_for_batch > lob_size ? lob_input_limit_for_batch
: lob_size);
+                                             lob_input_limit_for_batch < lob_size ? lob_input_limit_for_batch
: lob_size);
               }
               vid1.coerceType(*newType, NA_LOB_TYPE); 
               if (bindWA->getCurrentScope()->context()->inUpdate())


Mime
View raw message