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

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

Commit 95fb8e314421221a2fd062e67974b8a5199914ea in nifi's branch 
refs/heads/main from Matt Burgess
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=95fb8e3 ]

NIFI-7503: PutSQL - only call commit() and rollback() if autocommit is disabled

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

This closes #4558.


> PutSQL Shouldn't Commit When in AutoCommit Mode
> -----------------------------------------------
>
>                 Key: NIFI-7503
>                 URL: https://issues.apache.org/jira/browse/NIFI-7503
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Shawn Weeks
>            Assignee: Matt Burgess
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> PutSQL Commits even when autoCommit is true. Some drivers like RedShift raise 
> an exception and the JDBC Spec allows for an exception here. Recommend we 
> check to see if autoCommit is true before calling commit.
> https://docs.oracle.com/javase/7/docs/api/java/sql/Connection.html#commit()



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to