Add extra check on connection state in AbstractCursorItemReader#doClose

Issue #868
This commit is contained in:
Mahmoud Ben Hassine
2020-03-18 21:38:42 +01:00
parent 1a6ecfdb5d
commit e398c3ea65

View File

@@ -398,7 +398,7 @@ implements InitializingBean {
rs = null;
cleanupOnClose();
if(this.con != null) {
if(this.con != null && !this.con.isClosed()) {
this.con.setAutoCommit(this.initialConnectionAutoCommit);
}