You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Dmitriy Setrakyan (JIRA)" <ji...@apache.org> on 2017/12/07 23:13:00 UTC

[jira] [Assigned] (IGNITE-7143) CPP: Can not insert zero decimal value with the ODBC driver.

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

Dmitriy Setrakyan reassigned IGNITE-7143:
-----------------------------------------

    Assignee: Igor Sapego

> CPP: Can not insert zero decimal value with the ODBC driver.
> ------------------------------------------------------------
>
>                 Key: IGNITE-7143
>                 URL: https://issues.apache.org/jira/browse/IGNITE-7143
>             Project: Ignite
>          Issue Type: Bug
>          Components: odbc
>    Affects Versions: 2.1
>            Reporter: Igor Sapego
>            Assignee: Igor Sapego
>             Fix For: 2.4
>
>
> Create the following table:
> {code}
> CREATE TABLE IF NOT EXISTS TestTable (RecId varchar PRIMARY KEY, RecValue DECIMAL(4,2))
> WITH "template=replicated, cache_name=TestTable_Cache";
> {code}
> Then do an ODBC insert using the OdbcParameter with the OdbcCommand object:
> {code}
> INSERT INTO TestTable (RecId, RecValue) VALUES ('1', ?)
> {code}
> The Odbc error is "The connection has been disabled." however the JVM is
> throwing this error:
> {noformat}
> [SEVERE][client-connector-#47][ClientListenerNioListener] Failed to parse
> client request.
> java.lang.ArrayIndexOutOfBoundsException: 0
>  at org.apache.ignite.internal.binary.BinaryUtils.doReadDecimal
> {noformat}
> Everything works out ok until the actual value set on the parameter is 0.
> Null works fine, values other than 0 work fine. Precision and
> Scale are set appropriately. 



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