[ 
https://issues.apache.org/jira/browse/TRAFODION-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16323686#comment-16323686
 ] 

ASF GitHub Bot commented on TRAFODION-2903:
-------------------------------------------

GitHub user Weixin-Xu opened a pull request:

    https://github.com/apache/trafodion/pull/1395

    [TRAFODION-2903] correct Column_Size fetched from mxosrvr

    DATE precision expect: 10 and actual: 11
    TIME precision expect: 8 and actual: 9
    TIMESTAMP precision expect: 19 and actual: 20

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Weixin-Xu/incubator-trafodion T2903

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/trafodion/pull/1395.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1395
    
----
commit bb306026bdcec65050c364596a52d6c4bedb7837
Author: Weixin-Xu <xwx@...>
Date:   2018-01-12T07:28:46Z

    correct Column_Size fetched from mxosrvr

----


> The COLUMN_SIZE fetched from mxosrvr is wrong
> ---------------------------------------------
>
>                 Key: TRAFODION-2903
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-2903
>             Project: Apache Trafodion
>          Issue Type: Bug
>          Components: connectivity-mxosrvr
>    Affects Versions: any
>            Reporter: XuWeixin
>            Assignee: XuWeixin
>             Fix For: 2.2-incubating
>
>
> 1. DDL: create table TEST (C1 L4PKE date,C2 time,C3 timestamp)
> 2. 
> SQLColumns(hstmt,(SQLTCHAR*)"TRAFODION",SQL_NTS,(SQLTCHAR*)"SEABASE",SQL_NTS,(SQLTCHAR*)"TEST",SQL_NTS,(SQLTCHAR*)"%",SQL_NTS);
> 3. SQLBindCol(hstmt,7,SQL_C_LONG,&ColPrec,0,&len)
> 4. SQLFetch(hstmt)
> return  DATE ColPrec expect: 10 and actual: 11
>            TIME ColPrec expect: 8 and actual: 9
>            TIMESTAMP ColPrec expect: 19 and actual: 20



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to