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:52 UTC

[3/7] incubator-trafodion git commit: fix the LOB length for ExpLOBInterfaceUpdateAppend

fix the LOB length for ExpLOBInterfaceUpdateAppend


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

Branch: refs/heads/master
Commit: eee713b221ea8f1d2d8ed7379a1218ef3aabd699
Parents: c82b912
Author: Weiqing Xu <we...@esgyn.cn>
Authored: Wed Jul 26 07:13:48 2017 +0000
Committer: Weiqing Xu <we...@esgyn.cn>
Committed: Wed Jul 26 07:13:48 2017 +0000

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


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/eee713b2/core/sql/exp/ExpLOBinterface.cpp
----------------------------------------------------------------------
diff --git a/core/sql/exp/ExpLOBinterface.cpp b/core/sql/exp/ExpLOBinterface.cpp
index 75da1fe..5016a01 100644
--- a/core/sql/exp/ExpLOBinterface.cpp
+++ b/core/sql/exp/ExpLOBinterface.cpp
@@ -658,9 +658,9 @@ Lng32 ExpLOBInterfaceUpdateAppend(void * exLobGlob,
   Ex_Lob_Error status;
   Int64 cliError = -1;
   Int64 srcLen = 0;
-  if((so == Lob_Memory) || (so== Lob_External_File))
+  if(so== Lob_External_File)
     srcLen = strlen(srcLobData);
-  else if (so == Lob_Buffer)
+  else if ((so == Lob_Buffer) || (so == Lob_Memory))
     srcLen = tgtLobLen;
   err = ExLobsOper(tgtLobName, 
                    lobHandle, handleLen,