You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by li...@apache.org on 2018/04/13 12:38:55 UTC

[15/32] trafodion git commit: [TRAFODION-2740]remove unused code

[TRAFODION-2740]remove unused code


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

Branch: refs/heads/master
Commit: ea80ab383da807fe4fd61d9a9193c08ad2c79283
Parents: bd792ff
Author: Weiqing Xu <we...@esgyn.cn>
Authored: Fri Sep 22 16:44:40 2017 +0000
Committer: Weiqing Xu <we...@esgyn.cn>
Committed: Fri Sep 22 16:44:40 2017 +0000

----------------------------------------------------------------------
 core/conn/odbc/src/odbc/nsksrvrcore/srvrothers.cpp | 5 -----
 1 file changed, 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafodion/blob/ea80ab38/core/conn/odbc/src/odbc/nsksrvrcore/srvrothers.cpp
----------------------------------------------------------------------
diff --git a/core/conn/odbc/src/odbc/nsksrvrcore/srvrothers.cpp b/core/conn/odbc/src/odbc/nsksrvrcore/srvrothers.cpp
index af63ca3..a6e3c2b 100644
--- a/core/conn/odbc/src/odbc/nsksrvrcore/srvrothers.cpp
+++ b/core/conn/odbc/src/odbc/nsksrvrcore/srvrothers.cpp
@@ -6412,11 +6412,8 @@ odbc_SQLSrvr_ExtractLob_sme_(
         exception_->exception_nr = odbc_SQLsrvr_ExtractLob_ParamError_exn_;
         exception_->u.ParamError.ParamDesc = SQLSVC_EXCEPTION_UNABLE_TO_ALLOCATE_SQL_STMT;
     }
-FILE * fp= NULL;
-        fp = fopen("/tmp/closeLOB", "a+");
     switch (extractLobAPI) {
     case 0:
-        fprintf(fp, "new LOB API\n");
         extractData = NULL;
         snprintf(LobExtractQuery, sizeof(LobExtractQuery), "EXTRACT LOBLENGTH(LOB'%s') LOCATION %Ld", lobHandle, (Int64)&lobLength);
         break;
@@ -6434,8 +6431,6 @@ FILE * fp= NULL;
         extractLen = 0;
         extractData = NULL;
         snprintf(LobExtractQuery, sizeof(LobExtractQuery), "EXTRACT LOBTOBUFFER(LOB'%s', LOCATION %Ld, SIZE %Ld)", lobHandle, (Int64)extractData, &extractLen);
-        fprintf(fp, "close\n");
-        fclose(fp);
         break;
     default:
         return ;