trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sure...@apache.org
Subject [1/2] incubator-trafodion git commit: odb timestamp size add to display size of timestamp(9)
Date Fri, 16 Jun 2017 20:33:51 GMT
Repository: incubator-trafodion
Updated Branches:
  refs/heads/master 1083be32f -> e57b14697


odb timestamp size add to display size of timestamp(9)


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

Branch: refs/heads/master
Commit: bc726d3dfc42f08972895dc98b17a1687a877681
Parents: a8d197a
Author: Weixin Xu <weixin.xu@esgyn.cn>
Authored: Wed Jun 14 14:54:23 2017 +0800
Committer: Weixin Xu <weixin.xu@esgyn.cn>
Committed: Wed Jun 14 14:54:23 2017 +0800

----------------------------------------------------------------------
 core/conn/odb/src/odb.c | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/bc726d3d/core/conn/odb/src/odb.c
----------------------------------------------------------------------
diff --git a/core/conn/odb/src/odb.c b/core/conn/odb/src/odb.c
index 07dff8f..3a374c3 100644
--- a/core/conn/odb/src/odb.c
+++ b/core/conn/odb/src/odb.c
@@ -10289,6 +10289,11 @@ static int Ocopy(int eid)
                 goto ocopy_exit;
             }
             if ( etab[eid].dbt != VERTICA ) { /* Vertica's CHAR field length is in bytes
(not chars) */
+                if ( etab[eid].dbt == ORACLE && Odt[j] == SQL_TYPE_TIMESTAMP )
+                /* The precision of Oracle's Timestamp is always 9 */
+                {
+                    Ors[j] = SQL_TIMESTAMP_LEN + 10; /* Display Size of TIMESTAMP(9) */
+                }
                 switch ( Odt[j] ) {
                 case SQL_WCHAR:
                 case SQL_WVARCHAR:


Mime
View raw message