Repository: trafodion Updated Branches: refs/heads/master 700c8a5d5 -> d80f009eb
correct Column_Size fetched from mxosrvr Project: http://git-wip-us.apache.org/repos/asf/trafodion/repo Commit: http://git-wip-us.apache.org/repos/asf/trafodion/commit/bb306026 Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/bb306026 Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/bb306026 Branch: refs/heads/master Commit: bb306026bdcec65050c364596a52d6c4bedb7837 Parents: d93d17e Author: Weixin-Xu <xwx@weixin-1.novalocal> Authored: Fri Jan 12 15:28:46 2018 +0800 Committer: Weixin-Xu <xwx@weixin-1.novalocal> Committed: Fri Jan 12 15:28:46 2018 +0800 ---------------------------------------------------------------------- core/conn/odbc/src/odbc/nsksrvrcore/srvrothers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafodion/blob/bb306026/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 ccbb689..e24c130 100644 --- a/core/conn/odbc/src/odbc/nsksrvrcore/srvrothers.cpp +++ b/core/conn/odbc/src/odbc/nsksrvrcore/srvrothers.cpp @@ -4805,7 +4805,7 @@ odbc_SQLSvc_GetSQLCatalogs_sme_( "cast((case when co.FS_DATA_TYPE = 0 and co.character_set = 'UCS2' then co.COLUMN_SIZE/2 " "when co.FS_DATA_TYPE = 64 and co.character_set = 'UCS2' then co.COLUMN_SIZE/2 " "when dt.USEPRECISION = -1 then co.COLUMN_SIZE when dt.USEPRECISION = -2 then co.COLUMN_PRECISION " - "when co.FS_DATA_TYPE = 192 then dt.USEPRECISION + 1 " + "when co.FS_DATA_TYPE = 192 then dt.USEPRECISION " "when co.FS_DATA_TYPE >= 195 and co.FS_DATA_TYPE <= 207 then dt.USEPRECISION + 1 " "else dt.USEPRECISION end) as integer) COLUMN_SIZE, " "cast((case when dt.USELENGTH = -1 then co.COLUMN_SIZE when dt.USELENGTH = -2 then co.COLUMN_PRECISION "