Skip to content

Commit

Permalink
Fix for Bug#114800 (Bug#36576596), Wrong code by an old patch.
Browse files Browse the repository at this point in the history
Change-Id: Icaca71d10d591c837c87dee5f909954c1158e340
  • Loading branch information
fjssilva committed May 16, 2024
1 parent a9ec867 commit ce34ec8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

Version 9.0.0

- Fix for Bug#114800 (Bug#36576596), Wrong code by an old patch.

- Fix for Bug#114846 (Bug#36574322), Auto-closeable X dev session.
Thanks to Daniel Kec for his contribution.

Expand Down
4 changes: 2 additions & 2 deletions src/main/core-impl/java/com/mysql/cj/NativeSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -836,10 +836,10 @@ public <T extends Resultset> T execSQL(Query callingQuery, String query, int max
if (ex instanceof IOException) {
// IO may be dirty or damaged beyond repair, force close it.
this.protocol.getSocketConnection().forceClose();
} else if (ex instanceof IOException) {
invokeCleanupListeners(ex);
}
this.needsPing = true;
} else if (ex instanceof IOException) {
invokeCleanupListeners(ex);
}
throw ExceptionFactory.createException(ex.getMessage(), ex, this.exceptionInterceptor);

Expand Down

0 comments on commit ce34ec8

Please sign in to comment.