[teiid-issues] [JBoss JIRA] (TEIID-4228) ODBC "Parse Statements" option can result in changes in LENGTH metadata for columns

Lucie Fabrikova (JIRA) issues at jboss.org
Sun May 21 13:41:00 EDT 2017


    [ https://issues.jboss.org/browse/TEIID-4228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13409352#comment-13409352 ] 

Lucie Fabrikova commented on TEIID-4228:
----------------------------------------

I created vdb via teiid designer with bigdecimal type column with precision set to 0 and scale to 2, then ResultSetMetaData.getPrecision() returned 32767 and ResultSetMetaData.getScale() returned 0. Is the value of scale expected?

> ODBC "Parse Statements" option can result in changes in LENGTH metadata for columns
> -----------------------------------------------------------------------------------
>
>                 Key: TEIID-4228
>                 URL: https://issues.jboss.org/browse/TEIID-4228
>             Project: Teiid
>          Issue Type: Sub-task
>          Components: ODBC
>    Affects Versions: 8.7
>         Environment: Connections through ODBC driver
>            Reporter: Marc Shirley
>            Assignee: Steven Hawkins
>            Priority: Minor
>             Fix For: 9.1
>
>
> Connections through ODBC driver with the driver setting "Parse Statements" option enabled can result in incorrect length values being passed to the client.  In some cases (such as SQL Server linked server capabilities), this can result in the client throwing exceptions due to the expected LENGTH changing during the course of the query execution.
> This may be limited to columns with precision set to 0, as the SQL Server linked server case was corrected when the precision was changed from 0 to 9 for the column specified in the error.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the teiid-issues mailing list