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

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

Commit 372627eea8255e3c2670abf01a85e5df87a2b128 in nifi's branch 
refs/heads/main from Kuba Bogusz
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=372627eea8 ]

NIFI-15455 Use setBytes binding for BINARY SQL Type in PutDatabaseRecord 
processor

Signed-off-by: Pierre Villard <[email protected]>

This closes #10758.


> PutDatabaseRecord uses wrong binding for BINARY type
> ----------------------------------------------------
>
>                 Key: NIFI-15455
>                 URL: https://issues.apache.org/jira/browse/NIFI-15455
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 2.7.2
>            Reporter: Jakub Bogusz
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> For BINARY SQL Type `setObject` gets called instead of `setBytes`. Some 
> database drivers detect calls to `setObject` with `byte[]` and route to 
> `setBytes` internally, but not all, so this leads to errors such as following:
> {code:java}
> SQL compilation error: Invalid bind value ([B@290283be) for type (BINARY). 
> {code}



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

Reply via email to