SHUTDOWN followed by close() results in exception; isClosed() returns false

22 views
Skip to first unread message

Laird Nelson

unread,
Feb 5, 2020, 5:09:29 PM2/5/20
to H2 Database
Is the following sort of thing expected behavior?  I'm using H2 1.4.200 and a named in-memory database with DB_CLOSE_DELAY=-1.

statement.execute("SHUTDOWN");
statement.close();
// assert connection.isClosed(); // fails
connection.close(); // throws exception

I would think that either connection.isClosed() at that point should return true, or it should be legal to attempt to close the connection.

Best,
Laird
Reply all
Reply to author
Forward
0 new messages