You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by sa...@apache.org on 2017/07/31 05:41:55 UTC
[6/7] incubator-trafodion git commit: fix LOB size error for dynamic
parameters
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 <we...@esgyn.cn>
Authored: Fri Jul 28 09:58:11 2017 +0000
Committer: Weiqing Xu <we...@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())