[
https://issues.apache.org/jira/browse/NIFI-11860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tamas Neumer closed NIFI-11860.
-------------------------------
PR merged.
> 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: 2.0.0, 1.24.0
>
> Time Spent: 1h
> 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)