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

ASF subversion and git services commented on NIFI-11860:
--------------------------------------------------------

Commit c203205b3b6ef88778b721f43b2ccc68fbafc9d9 in nifi's branch 
refs/heads/support/nifi-1.x from Tamas Neumer
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=c203205b3b ]

NIFI-11860 fixed bug in ResultSetRecordSet affecting decimalScale when 
resultSetScale was zero.

Signed-off-by: Matt Burgess <[email protected]>


> Erroneously set decimalScale when resultSetScale is 0
> -----------------------------------------------------
>
>                 Key: NIFI-11860
>                 URL: https://issues.apache.org/jira/browse/NIFI-11860
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>            Reporter: Tamas Neumer
>            Assignee: Tamas Neumer
>            Priority: Minor
>             Fix For: 1.latest, 2.latest
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Hi,
> In the 
> [ResultSetRecordSet|https://github.com/apache/nifi/blob/a61add22c2507025a901e9ba753b3a6eb976d7e1/nifi-commons/nifi-record/src/main/java/org/apache/nifi/serialization/record/ResultSetRecordSet.java#L328]
>  if the resultScale is 0, then the decimal scale is set to the defaultScale. 
> This however is inconsistent with the [JDBC Common's 
> behavior|https://github.com/apache/nifi/commit/4fde9648dd8ec621ebcdf1bfd0b80786a0ff68da#diff-18c3d769d6220682bdc35a1c3136aea9ff74d323610c992daa22f7689ed3482dR585].
>  
> We believe that in the ResultSetRecordSet the same >= should be used.
>  
> BR,
> Tamas
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to