trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbirds...@apache.org
Subject [1/2] trafodion git commit: Call SQLGetTypeInfo to gets SQL_INTEGER type info and return value is incorrect
Date Fri, 09 Nov 2018 23:27:08 GMT
Repository: trafodion
Updated Branches:
  refs/heads/master e2051ceae -> 571611ae1


Call SQLGetTypeInfo to gets SQL_INTEGER type info and return value is incorrect


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

Branch: refs/heads/master
Commit: 6b957a8f88dbce25d64a22ccc2ac6ab5c06a0904
Parents: d83b97e
Author: XuWeixin <weixin.xu@esgyn.cn>
Authored: Fri Nov 2 06:48:09 2018 +0000
Committer: XuWeixin <weixin.xu@esgyn.cn>
Committed: Mon Nov 5 02:06:57 2018 +0000

----------------------------------------------------------------------
 core/conn/odbc/src/odbc/nsksrvrcore/srvrothers.cpp               | 4 ++--
 .../jdbc_test/src/test/java/org/trafodion/jdbc_test/TestCat.java | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafodion/blob/6b957a8f/core/conn/odbc/src/odbc/nsksrvrcore/srvrothers.cpp
----------------------------------------------------------------------
diff --git a/core/conn/odbc/src/odbc/nsksrvrcore/srvrothers.cpp b/core/conn/odbc/src/odbc/nsksrvrcore/srvrothers.cpp
index 1af8f1e..1842cac 100644
--- a/core/conn/odbc/src/odbc/nsksrvrcore/srvrothers.cpp
+++ b/core/conn/odbc/src/odbc/nsksrvrcore/srvrothers.cpp
@@ -4679,8 +4679,8 @@ odbc_SQLSvc_GetSQLCatalogs_sme_(
                                  "('DOUBLE PRECISION', 8, 15, NULL, NULL, NULL, 1, 0, 2,
0, 0, 0, 'DOUBLE', NULL, NULL, 'DOUBLE PRECISION', 2, 54, -1, 8, NULL, NULL, 0, 0, 3, 0),"
                                  "('DOUBLE PRECISION', 8, 15, NULL, NULL, NULL, 1, 0, 2,
0, 0, 0, 'DOUBLE', NULL, NULL, 'DOUBLE', 2, 54, -1, 8, NULL, NULL, 0, 0, 3, 0),"
                                  "('FLOAT', 6, 15, NULL, NULL, NULL, 1, 0, 2, 0, 0, 0, 'FLOAT',
NULL, NULL, 'FLOAT', 2, -2, -1, 6, NULL, NULL, 0, 0, 3, 0),"
-                                 "('INTEGER', 4, 9, NULL, NULL, NULL, 1, 0, 2, 0, 0, 0, 'INTEGER',
NULL, NULL, 'INTEGER', 9, 9, -1, 4, NULL, NULL, 0, 0, 3, 0),"
-                                 "('INTEGER SIGNED', 4, 9, NULL, NULL, NULL, 1, 0, 2, 0,
0, 0, 'INTEGER', NULL, NULL, 'SIGNED INTEGER', 9, 9, -1, 4, NULL, NULL, 0, 0, 3, 0),"
+                                 "('INTEGER', 4, 10, NULL, NULL, NULL, 1, 0, 2, 0, 0, 0,
'INTEGER', NULL, NULL, 'INTEGER', 10, 10, -1, 4, NULL, NULL, 0, 0, 3, 0),"
+                                 "('INTEGER SIGNED', 4, 10, NULL, NULL, NULL, 1, 0, 2, 0,
0, 0, 'INTEGER', NULL, NULL, 'SIGNED INTEGER', 10, 10, -1, 4, NULL, NULL, 0, 0, 3, 0),"
                                  "('INTEGER UNSIGNED', 4, 10, NULL, NULL, NULL, 1, 0, 2,
1, 0, 0, 'INTEGER', NULL, NULL, 'UNSIGNED INTEGER', 10, 10, -1, -401, NULL, NULL, 0, 0, 3,
0),"
                                  "('INTERVAL', 113, 0, '{INTERVAL ''', ''' MINUTE TO SECOND}',
NULL, 1, 0, 2, 0, 0, NULL, 'INTERVAL', 0, 0, 'INTERVAL', NULL, 3, 34, 100, 13, 2, 5, 6, 3,
0),"
                                  "('INTERVAL', 105, 0, '{INTERVAL ''', ''' MINUTE}', NULL,
1, 0, 2, 0, 0, NULL, 'INTERVAL', 0, 0, 'INTERVAL', NULL, 0, 34, 100, 5, 2, 5, 5, 3, 0),"

http://git-wip-us.apache.org/repos/asf/trafodion/blob/6b957a8f/dcs/src/test/jdbc_test/src/test/java/org/trafodion/jdbc_test/TestCat.java
----------------------------------------------------------------------
diff --git a/dcs/src/test/jdbc_test/src/test/java/org/trafodion/jdbc_test/TestCat.java b/dcs/src/test/jdbc_test/src/test/java/org/trafodion/jdbc_test/TestCat.java
index 88cc28e..434f1e5 100644
--- a/dcs/src/test/jdbc_test/src/test/java/org/trafodion/jdbc_test/TestCat.java
+++ b/dcs/src/test/jdbc_test/src/test/java/org/trafodion/jdbc_test/TestCat.java
@@ -484,8 +484,8 @@ public class TestCat
 	        "14: TYPE_NAME - DECIMAL DATA_TYPE - 3 PRECISION - 18",
 	        "15: TYPE_NAME - DECIMAL SIGNED DATA_TYPE - 3 PRECISION - 18",
 	        "16: TYPE_NAME - DECIMAL UNSIGNED DATA_TYPE - 3 PRECISION - 18",
-	        "17: TYPE_NAME - INTEGER DATA_TYPE - 4 PRECISION - 9",
-	        "18: TYPE_NAME - INTEGER SIGNED DATA_TYPE - 4 PRECISION - 9",
+	        "17: TYPE_NAME - INTEGER DATA_TYPE - 4 PRECISION - 10",
+	        "18: TYPE_NAME - INTEGER SIGNED DATA_TYPE - 4 PRECISION - 10",
 	        "19: TYPE_NAME - INTEGER UNSIGNED DATA_TYPE - 4 PRECISION - 10",
 	        "20: TYPE_NAME - SMALLINT DATA_TYPE - 5 PRECISION - 5",
 	        "21: TYPE_NAME - SMALLINT SIGNED DATA_TYPE - 5 PRECISION - 5",


Mime
View raw message