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

Igor Sapego commented on IGNITE-2879:
-------------------------------------

In the end, I decided to implement my own solution which is not based on Java 
classes but is compatible with them. It conststs of two classes - 
{{BigInteger}} and {{Decimal}}. {{BigInteger}} class implements most of the 
functionality, including multiplication, division, pow and so on, while the 
{{Decimal}} class implemented as an {{BigInteger}} with a scale and only deals 
with operations that could affect the scale of the decimal number. Only minimal 
set of methods have been implemented which is needed to be able to deal with 
adjustment of the scale of the Decimals as required by the ODBC. This set 
contains of {{SetScale()}}, {{GetScale()}}, {{GetPrecision()}} and input/output 
operators for the {{Decimal}} class. All other methods have been implemented in 
order to achieve this functionality.

> ODBC: Add support for Decimal type (SQL_NUMERIC_STRUCT).
> --------------------------------------------------------
>
>                 Key: IGNITE-2879
>                 URL: https://issues.apache.org/jira/browse/IGNITE-2879
>             Project: Ignite
>          Issue Type: Task
>          Components: odbc
>    Affects Versions: 1.5.0.final
>            Reporter: Igor Sapego
>            Assignee: Igor Sapego
>             Fix For: 1.7
>
>
> We need reasonable Decimal type support at least for the ODBC.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to