Add extra check on connection state in AbstractCursorItemReader#doClose
Issue #868
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user