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 2017/09/29 23:56:34 UTC

[11/13] incubator-trafodion git commit: [TRAFODION-2754] Changing str_sprintf() to use sprintf()

[TRAFODION-2754] Changing str_sprintf() to use sprintf()

Fix for debug build failure


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

Branch: refs/heads/master
Commit: d93e1d4e2a04544e1176a76258a98fe41310da64
Parents: 84a21dd
Author: selvaganesang <se...@esgyn.com>
Authored: Wed Sep 27 22:02:37 2017 +0000
Committer: selvaganesang <se...@esgyn.com>
Committed: Wed Sep 27 22:02:37 2017 +0000

----------------------------------------------------------------------
 core/sql/executor/ExExeUtilMisc.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/d93e1d4e/core/sql/executor/ExExeUtilMisc.cpp
----------------------------------------------------------------------
diff --git a/core/sql/executor/ExExeUtilMisc.cpp b/core/sql/executor/ExExeUtilMisc.cpp
index aed6301..754e299 100644
--- a/core/sql/executor/ExExeUtilMisc.cpp
+++ b/core/sql/executor/ExExeUtilMisc.cpp
@@ -1397,7 +1397,7 @@ short ExExeUtilLongRunningTcb::executeLongRunningQuery()
 
           // str_printf() does not support %ld. Use %d instead.
           str_sprintf(lruQPInfo, 
-	             "Queries to be processed: \n\n%s\n\n%s\n\n\n Initial rows deleted: %d",
+	             "Queries to be processed: \n\n%s\n\n%s\n\n\n Initial rows deleted: %ld",
                       lruStmtAndPartInfo_,
                       lruStmtWithCKAndPartInfo_,
                       getRowsDeleted());
@@ -1426,7 +1426,7 @@ short ExExeUtilLongRunningTcb::executeLongRunningQuery()
       if ((rc == 100 || rc > 0) && lrTdb().longRunningQueryPlan()) {
 
         char lruQPInfo [100];
-        str_sprintf(lruQPInfo, "Total rows deleted: %d\n\n", getRowsDeleted());
+        str_sprintf(lruQPInfo, "Total rows deleted: %ld\n\n", getRowsDeleted());
 
         ComDiagsArea * diagsArea = getDiagAreaFromUpQueueTail();
         (*diagsArea) << DgSqlCode(8427) << DgString0(lruQPInfo);
@@ -1575,7 +1575,7 @@ short ExExeUtilLongRunningTcb::processContinuing(Lng32 &rc)
 
         char lruQPInfo[100];
 
-        str_sprintf(lruQPInfo, "Continuing rows deleted: %d\n\n", 
+        str_sprintf(lruQPInfo, "Continuing rows deleted: %ld\n\n", 
                                 rowsAffected);
 
         ComDiagsArea * diagsArea = getDiagAreaFromUpQueueTail();