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

Sergey Kalashnikov commented on IGNITE-7143:
--------------------------------------------

[~isapego]
Igor, the changes looks good to me.

> 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
>            Priority: Blocker
>             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)

Reply via email to