[
https://issues.apache.org/jira/browse/TRAFODION-2374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15704806#comment-15704806
]
ASF GitHub Bot commented on TRAFODION-2374:
-------------------------------------------
GitHub user mashengchen opened a pull request:
https://github.com/apache/incubator-trafodion/pull/857
TRAFODION-2374 insert data through jdbc while column type is numeric will
insert error data
insert negative numeric (-1) through jdbc addbatch while the column type is
numeric(20,0).
eg : prepStmt.setBigDecimal(1, new BigDecimal(-1));
the result is a strange number. seemingly a overflow
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mashengchen/incubator-trafodion 2374
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-trafodion/pull/857.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 #857
----
commit e4838ec1e589a09fdedaa5445729e9f0110162bc
Author: mashengchen <[email protected]>
Date: 2016-11-24T08:24:17Z
Merge pull request #1 from apache/master
update
commit 1daecf1318d164261104a5bce51ae5a4bf2dc3ad
Author: mashengchen <[email protected]>
Date: 2016-11-29T09:28:19Z
TRAFODION-2374
----
> insert data through jdbc while column type is numeric will insert error data
> ----------------------------------------------------------------------------
>
> Key: TRAFODION-2374
> URL: https://issues.apache.org/jira/browse/TRAFODION-2374
> Project: Apache Trafodion
> Issue Type: Bug
> Reporter: mashengchen
> Assignee: mashengchen
>
> insert negative numeric (-1) through jdbc addbatch while the column type is
> numeric(20,0).
> eg : prepStmt.setBigDecimal(1, new BigDecimal(-1));
> the result is a strange number. seemingly a overflow
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)