trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sure...@apache.org
Subject [3/4] incubator-trafodion git commit: bug fix for print long value
Date Tue, 06 Sep 2016 16:04:55 GMT
bug fix for print long value


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

Branch: refs/heads/master
Commit: b1ca4789516ed015f30e99d1ea829077f290cdeb
Parents: 98463fd
Author: Liu Ming <liuming@apache.org>
Authored: Sat Sep 3 07:54:47 2016 +0000
Committer: Liu Ming <liuming@apache.org>
Committed: Sat Sep 3 07:54:47 2016 +0000

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


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b1ca4789/core/sql/exp/exp_datetime.cpp
----------------------------------------------------------------------
diff --git a/core/sql/exp/exp_datetime.cpp b/core/sql/exp/exp_datetime.cpp
index 60ae7c2..d0b9f16 100644
--- a/core/sql/exp/exp_datetime.cpp
+++ b/core/sql/exp/exp_datetime.cpp
@@ -113,7 +113,7 @@ raiseDateConvErrorWithSrcDataNumeric(ComDiagsArea** diagsArea, long srcData,
Col
 {
    char errstr[MAX_OFFENDING_SOURCE_DATA_DISPLAY_LEN];
    str_pad(errstr, sizeof(errstr), 0 );
-   str_sprintf(errstr,"%ld",srcData);
+   str_sprintf(errstr,"%Ld",srcData);
    ExRaiseSqlError(heap, diagsArea, EXE_CONVERT_DATETIME_ERROR,NULL,NULL,NULL,NULL,errstr);
 }
 //////////////////////////////////////////////


Mime
View raw message