Closed thekid closed 13 years ago
Need to test this for Sybase and PostgreSQL, too.
friebe, Mon, 12 Jun 2006 11:02:08 +0200
Maybe ConnectionClosedException should be SQLConnectionClosedException? - just to be consistent with the rest of the SQL* exceptions...
friebe, Mon, 12 Jun 2006 11:24:55 +0200
Discussion with RFC author - SQLConnectionClosedException is OK.
friebe, Mon, 12 Jun 2006 11:48:38 +0200
Scope of Change
A new exception will be added to the rdbms package indicating a connection loss during server query.
Rationale
Currently there is no determination which type of error caused an SQLException during query. Sometimes it's helpful to know if a connection has been closed by foreign host.
Functionality
Changes to existing classes
The query() method of the rdbms.DBConnection subclasses will be changed and in cases where the connection was lost during query a new Exception will be thrown. This exception extends rdbms.SQLStatementFailedException to avoid bc-breakes.
Example patch excerpt for rdms.mysql:
New Exceptions
A new exception rdbms.SQLConnectionClosedException will be added to the repository. This class extends rdbms.SQLStatementFailedException.
Security considerations
n/a
Speed impact
n/a
Dependencies
Related documents