closeOnCompletion
Dave Cramer
davecramer at gmail.com
Wed Feb 17 10:53:38 UTC 2021
Interesting situation.
If we have an open statement with open resultsets and call
closeOnCompletion and then execute the statement a second time the
statement will throw an already closed exception since the spec says that
executing a statement a second time closes any open resultsets. Closing
said resultsets ends up closing the statement.
I'm just confirming that this is the intended behaviour. Seems about right
since if you set closeOnCompletion you would not expect to re-use the
statement.
Dave Cramer
More information about the jdbc-spec-discuss
mailing list