[
https://issues.apache.org/jira/browse/NIFI-1241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15036753#comment-15036753
]
Oleg Zhurakousky commented on NIFI-1241:
----------------------------------------
Just tested it to confirm, so the current code could look like this:
{code}
private void setParameter(final PreparedStatement stmt, final int
parameterIndex, final String parameterValue, final int jdbcType) throws
SQLException {
stmt.setObject(parameterIndex, parameterValue, jdbcType);
}
{code}
Basically, let the driver handle the conversion
> PutSQL does not support Boolean, Numeric, or Decimal data types
> ---------------------------------------------------------------
>
> Key: NIFI-1241
> URL: https://issues.apache.org/jira/browse/NIFI-1241
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Reporter: Mark Payne
> Assignee: Mark Payne
> Fix For: 0.4.0
>
> Attachments:
> 0001-NIFI-1241-Incorporate-Boolean-Numeric-and-Decimal-da.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)