Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Some JDBC drivers throw an exception when calling setAutoCommit(false), even if the auto-commit setting for the driver is already false. Although unfortunate, I'm not sure it is a violation of the JDBC API. PutDatabaseRecord should catch SQLFeatureNotSupportedException and perhaps log a debug message but otherwise proceed.
Same goes for connection.commit() and connection.rollback(), these should not be explicitly called if auto-commit is true for the connection.
Attachments
Issue Links
- is cloned by
-
NIFI-12010 Handle auto-commit and commit based on driver capabilities in SQL components
- Resolved
- links to