ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-5939) ODBC: SQLColAttributes should work with legacy attribute codes.
Date Fri, 04 Aug 2017 13:59:00 GMT

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

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

GitHub user isapego opened a pull request:

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

    IGNITE-5939: ODBC: SQLColAttributes now works with legacy attribute codes.

    

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

    $ git pull https://github.com/gridgain/apache-ignite ignite-5939

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

    https://github.com/apache/ignite/pull/2399.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 #2399
    
----
commit 44496f38d6d55ab616e8a8cf4f7a8c986543ef66
Author: Igor Sapego <isapego@gridgain.com>
Date:   2017-08-04T13:55:05Z

    IGNITE-5939: Added tests.

commit 8a443ced2071a9fff471ebd3167032708a3a4f16
Author: Igor Sapego <isapego@gridgain.com>
Date:   2017-08-04T13:57:05Z

    IGNITE-5939: Fix

----


> ODBC: SQLColAttributes should work with legacy attribute codes.
> ---------------------------------------------------------------
>
>                 Key: IGNITE-5939
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5939
>             Project: Ignite
>          Issue Type: Bug
>          Components: odbc
>    Affects Versions: 2.1
>            Reporter: Igor Sapego
>            Assignee: Igor Sapego
>             Fix For: 2.2
>
>
> According to https://docs.microsoft.com/en-us/sql/odbc/reference/syntax/sqlcolattribute-function

> {quote}
> The #define values of the ODBC 2.x {{FieldIdentifiers}} {{SQL_COLUMN_LENGTH}}, {{SQL_COLUMN_PRECISION}},
and {{SQL_COLUMN_SCALE}} are different from the #define values of the ODBC 3.x {{FieldIdentifiers}}
{{SQL_DESC_PRECISION}}, {{SQL_DESC_SCALE}}, and {{SQL_DESC_LENGTH}}. An ODBC 2.x driver need
only support the ODBC 2.x values. An ODBC 3.x driver must support both "{{SQL_COLUMN}}" and
"{{SQL_DESC}}" values for these three {{FieldIdentifiers}}. These values are different because
precision, scale, and length are defined differently in ODBC 3.x than they were in ODBC 2.x.
> {quote}
> Currently, {{SQLColAttributes}} does not work with these three identifiers in our driver.
Need to be fixed.



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

Mime
View raw message