You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by db...@apache.org on 2016/10/03 21:08:36 UTC

[1/2] incubator-trafodion git commit: [TRAFODION-2255] Fix off-by-one error in incremental update stats

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 <db...@apache.org>
Authored: Mon Oct 3 17:16:10 2016 +0000
Committer: Dave Birdsall <db...@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 += "-";


[2/2] incubator-trafodion git commit: Merge [TRAFODION-2255] PR 738 Fix off-by-one bug in incremental update stats

Posted by db...@apache.org.
Merge [TRAFODION-2255] PR 738 Fix off-by-one bug 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/67673f4a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/67673f4a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/67673f4a

Branch: refs/heads/master
Commit: 67673f4a1d16d3fa27eed4f730d65475f12bfada
Parents: c760dd9 8e65504
Author: Dave Birdsall <db...@apache.org>
Authored: Mon Oct 3 21:07:57 2016 +0000
Committer: Dave Birdsall <db...@apache.org>
Committed: Mon Oct 3 21:07:57 2016 +0000

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