trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbirds...@apache.org
Subject [1/2] incubator-trafodion git commit: [TRAFODION-2255] Fix off-by-one error in incremental update stats
Date Mon, 03 Oct 2016 21:08:36 GMT
Repository: incubator-trafodion
Updated Branches:
  refs/heads/master c760dd99e -> 67673f4a1


[TRAFODION-2255] Fix off-by-one error in incremental update stats


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

Branch: refs/heads/master
Commit: 8e65504e79e503ba14a5e626dcd2c6ac61360568
Parents: c760dd9
Author: Dave Birdsall <dbirdsall@apache.org>
Authored: Mon Oct 3 17:16:10 2016 +0000
Committer: Dave Birdsall <dbirdsall@apache.org>
Committed: Mon Oct 3 17:16:10 2016 +0000

----------------------------------------------------------------------
 core/sql/ustat/hs_globals.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/8e65504e/core/sql/ustat/hs_globals.cpp
----------------------------------------------------------------------
diff --git a/core/sql/ustat/hs_globals.cpp b/core/sql/ustat/hs_globals.cpp
index 70adda5..a06eb2e 100644
--- a/core/sql/ustat/hs_globals.cpp
+++ b/core/sql/ustat/hs_globals.cpp
@@ -6026,7 +6026,7 @@ void genSQLTimestampConstant(struct tm * bdt, NAString& timestamp)
   timestamp += "-";
 
   // tm_mon is in  [0, 11]
-  if ( bdt->tm_mon <= 9 ) timestamp += "0";
+  if ( bdt->tm_mon < 9 ) timestamp += "0"; // < rather than <= since we add one
in the next line
   str_itoa(bdt->tm_mon+1, buf); timestamp += buf;
 
   timestamp += "-";


Mime
View raw message