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 2016/05/18 03:41:14 UTC

[1/2] incubator-trafodion git commit: [TRAFODION-994]SQLColumns return incorrect values

Repository: incubator-trafodion
Updated Branches:
  refs/heads/master 8c87a9a5f -> 71edb095a


[TRAFODION-994]SQLColumns return incorrect values

[TRAFODION-994]Servera1 values returned by SQLColumns are incorrect.
1. ColNullable, change to return the value from metadata table directly.
2. Remark was not support now, return a empty string.


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

Branch: refs/heads/master
Commit: 1d06665b9a5c6db28809ccf6baab2e5a9c2247d5
Parents: cdd1bef
Author: Weiqing Xu <we...@esgyn.cn>
Authored: Tue May 17 08:36:56 2016 +0000
Committer: Weiqing Xu <we...@esgyn.cn>
Committed: Tue May 17 08:49:34 2016 +0000

----------------------------------------------------------------------
 core/conn/odbc/src/odbc/nsksrvrcore/srvrothers.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/1d06665b/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 f7f075b..4874d9a 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_(
    "else dt.USELENGTH end) as integer) BUFFER_LENGTH, "
   "cast(co.COLUMN_SCALE as smallint) DECIMAL_DIGITS, "
 "cast(dt.NUM_PREC_RADIX as smallint) NUM_PREC_RADIX, "
-  "cast((case when co.NULLABLE = 0 then 0 when co.NULLABLE = 2 then 1 else 2 end) as smallint) NULLABLE, "
- "cast(NULL as varchar(128)) REMARKS, "
+ "cast(co.NULLABLE as smallint) NULLABLE, "
+ "cast('' as varchar(128)) REMARKS, "
 "trim(co.DEFAULT_VALUE) COLUMN_DEF, "
   "cast((case when co.FS_DATA_TYPE = 0 and co.character_set = 'UCS2' then -8 "
      "when co.FS_DATA_TYPE = 64 and co.character_set = 'UCS2' then -9 else dt.SQL_DATA_TYPE end) as smallint) SQL_DATA_TYPE, "


[2/2] incubator-trafodion git commit: Merge [TRAFODION-994] PR-487 SQLColumns return incorrect value

Posted by se...@apache.org.
Merge [TRAFODION-994] PR-487 SQLColumns return incorrect 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/71edb095
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/71edb095
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/71edb095

Branch: refs/heads/master
Commit: 71edb095ab82cbf9e5c03e374da0138757dc1eeb
Parents: 8c87a9a 1d06665
Author: selvaganesang <se...@apache.org>
Authored: Wed May 18 03:39:02 2016 +0000
Committer: selvaganesang <se...@apache.org>
Committed: Wed May 18 03:39:02 2016 +0000

----------------------------------------------------------------------
 core/conn/odbc/src/odbc/nsksrvrcore/srvrothers.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------