[
https://issues.apache.org/jira/browse/IGNITE-7143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16287578#comment-16287578
]
ASF GitHub Bot commented on IGNITE-7143:
----------------------------------------
GitHub user isapego opened a pull request:
https://github.com/apache/ignite/pull/3207
IGNITE-7143: Fixed Decimal serialization issue
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gridgain/apache-ignite ignite-7143
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/ignite/pull/3207.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 #3207
----
commit f0dfad560ce7b6013346454bff2700282de4ca65
Author: Igor Sapego <[email protected]>
Date: 2017-12-12T13:08:35Z
IGNITE-7143: Fixed Decimal serialization issue
----
> 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)