Skip to content

Commit ce34ec8

Browse files
committed
Fix for Bug#114800 (Bug#36576596), Wrong code by an old patch.
Change-Id: Icaca71d10d591c837c87dee5f909954c1158e340
1 parent a9ec867 commit ce34ec8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
Version 9.0.0
55

6+
- Fix for Bug#114800 (Bug#36576596), Wrong code by an old patch.
7+
68
- Fix for Bug#114846 (Bug#36574322), Auto-closeable X dev session.
79
Thanks to Daniel Kec for his contribution.
810

src/main/core-impl/java/com/mysql/cj/NativeSession.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -836,10 +836,10 @@ public <T extends Resultset> T execSQL(Query callingQuery, String query, int max
836836
if (ex instanceof IOException) {
837837
// IO may be dirty or damaged beyond repair, force close it.
838838
this.protocol.getSocketConnection().forceClose();
839-
} else if (ex instanceof IOException) {
840-
invokeCleanupListeners(ex);
841839
}
842840
this.needsPing = true;
841+
} else if (ex instanceof IOException) {
842+
invokeCleanupListeners(ex);
843843
}
844844
throw ExceptionFactory.createException(ex.getMessage(), ex, this.exceptionInterceptor);
845845

0 commit comments

Comments
 (0)