Skip to content

Commit f9466b1

Browse files
committed
Reset the currentSchema and currentCatalog back to null on reset
1 parent 74b6d65 commit f9466b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ebean-datasource/src/main/java/io/ebean/datasource/pool/PooledConnection.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,11 +422,13 @@ public void close() throws SQLException {
422422

423423
if (resetSchema) {
424424
connection.setSchema(originalSchema);
425+
currentSchema = null;
425426
resetSchema = false;
426427
}
427428

428429
if (resetCatalog) {
429430
connection.setCatalog(originalCatalog);
431+
currentCatalog = null;
430432
resetCatalog = false;
431433
}
432434

0 commit comments

Comments
 (0)