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/01/18 03:20:57 UTC
[2/3] incubator-trafodion git commit: [TRAFPDION-2351] Bulk load with
log error rows enhancements
[TRAFPDION-2351] Bulk load with log error rows enhancements
Changed the timestamp in the output to be displayed in the local
time zone of the server
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/e97a7676
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/e97a7676
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/e97a7676
Branch: refs/heads/master
Commit: e97a7676e62f37be158e26ee4c73abd62e4e2915
Parents: 0a3fcb7
Author: selvaganesang <se...@esgyn.com>
Authored: Tue Jan 17 16:43:33 2017 +0000
Committer: selvaganesang <se...@esgyn.com>
Committed: Tue Jan 17 16:43:33 2017 +0000
----------------------------------------------------------------------
core/sql/executor/ExExeUtilCommon.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/e97a7676/core/sql/executor/ExExeUtilCommon.cpp
----------------------------------------------------------------------
diff --git a/core/sql/executor/ExExeUtilCommon.cpp b/core/sql/executor/ExExeUtilCommon.cpp
index f400ba0..91d9da8 100644
--- a/core/sql/executor/ExExeUtilCommon.cpp
+++ b/core/sql/executor/ExExeUtilCommon.cpp
@@ -359,7 +359,8 @@ char * ExExeUtilTcb::getTimestampAsString(Int64 juliantimestamp,
char * timeBuf)
{
short timestamp[8];
- INTERPRETTIMESTAMP(juliantimestamp, timestamp);
+ Int64 localTimestamp = CONVERTTIMESTAMP(juliantimestamp,0,-1,0);
+ INTERPRETTIMESTAMP(localTimestamp, timestamp);
short year = timestamp[0];
char month = (char) timestamp[1];
char day = (char) timestamp[2];