You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Kuznetsov (JIRA)" <ji...@apache.org> on 2019/04/08 16:20:00 UTC

[jira] [Assigned] (IGNITE-10745) SQL: jdbc metadata's getColumns returns wrong value for "ORDINAL_POSITION"

     [ https://issues.apache.org/jira/browse/IGNITE-10745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel Kuznetsov reassigned IGNITE-10745:
----------------------------------------

    Assignee: Alexander Lapin

> SQL: jdbc metadata's getColumns returns wrong value for "ORDINAL_POSITION" 
> ---------------------------------------------------------------------------
>
>                 Key: IGNITE-10745
>                 URL: https://issues.apache.org/jira/browse/IGNITE-10745
>             Project: Ignite
>          Issue Type: Bug
>          Components: jdbc, sql
>            Reporter: Pavel Kuznetsov
>            Assignee: Alexander Lapin
>            Priority: Minor
>              Labels: jdbc, metadata, sql
>
> Affected both thin and jdbc v2 drivers.
> jdbc spec says : 
> {noformat}
> ORDINAL_POSITION int => index of column in table (starting at 1)
> {noformat}
> but in fact it is a position in the metadata table itself, not position in the original table. 
> For example we have table 
> {code:sql}
> Person(id int primary key, val1 int, val2 bigint, val3 int)
> {code}
> Oridinal number for {{val3}} is 4, but if we specified patterns that leave only 1 result  ({{PUBLIC.Person.val3}}) returned value will be 1. If we select 2 columns by pattern - 2 or 1 and so on.



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