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

ASF GitHub Bot commented on IGNITE-10585:
-----------------------------------------

GitHub user ldzhjn opened a pull request:

    https://github.com/apache/ignite/pull/5597

    IGNITE-10585 JDBC driver returns FLOAT in column metadata for REAL SQL type

    

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

    $ git pull https://github.com/ldzhjn/ignite IGNITE-10585

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

    https://github.com/apache/ignite/pull/5597.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 #5597
    
----
commit 3f226a3870c77a9070b368e65a29d99416c7606f
Author: rayliu <rayliu@...>
Date:   2018-12-07T02:15:02Z

    Fix bug

commit 24347646acde056b26134a5d9440509566fec686
Author: rayliu <rayliu@...>
Date:   2018-12-07T03:52:14Z

    Add test

----


> JDBC driver returns FLOAT in column metadata for REAL SQL type
> --------------------------------------------------------------
>
>                 Key: IGNITE-10585
>                 URL: https://issues.apache.org/jira/browse/IGNITE-10585
>             Project: Ignite
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 2.7
>            Reporter: Ray
>            Assignee: Ray
>            Priority: Major
>             Fix For: 2.8
>
>
> When I create a table usingĀ 
> create table c(a varchar, b real, primary key(a));
> The meta information for column b is wrong when I use !desc c to check.
> 0: jdbc:ignite:thin://127.0.0.1/> !desc c
>  TABLE_CAT
>  TABLE_SCHEM PUBLIC
>  TABLE_NAME C
>  COLUMN_NAME A
>  DATA_TYPE 12
>  TYPE_NAME VARCHAR
>  COLUMN_SIZE null
>  BUFFER_LENGTH null
>  DECIMAL_DIGITS null
>  NUM_PREC_RADIX 10
>  NULLABLE 1
>  REMARKS
>  COLUMN_DEF
>  SQL_DATA_TYPE 12
>  SQL_DATETIME_SUB null
>  CHAR_OCTET_LENGTH 2147483647
>  ORDINAL_POSITION 1
>  IS_NULLABLE YES
>  SCOPE_CATLOG
>  SCOPE_SCHEMA
>  SCOPE_TABLE
>  SOURCE_DATA_TYPE null
>  IS_AUTOINCREMENT NO
>  IS_GENERATEDCOLUMN NO
> TABLE_CAT
>  TABLE_SCHEM PUBLIC
>  TABLE_NAME C
>  COLUMN_NAME B
>  DATA_TYPE 7
>  {color:#d04437}TYPE_NAMEĀ FLOAT{color}
>  COLUMN_SIZE null
>  BUFFER_LENGTH null
>  DECIMAL_DIGITS null
>  NUM_PREC_RADIX 10
>  NULLABLE 1
>  REMARKS
>  COLUMN_DEF
>  SQL_DATA_TYPE 8
>  SQL_DATETIME_SUB null
>  CHAR_OCTET_LENGTH 2147483647
>  ORDINAL_POSITION 2
>  IS_NULLABLE YES
>  SCOPE_CATLOG
>  SCOPE_SCHEMA
>  SCOPE_TABLE
>  SOURCE_DATA_TYPE null
>  IS_AUTOINCREMENT NO
>  IS_GENERATEDCOLUMN NO



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to