db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kathey Marsden <kmarsdende...@sbcglobal.net>
Subject Re: [jira] Updated: (DERBY-397) Make it sure for the connection to be closed in drda.Database#close() even if Exception happens in conn.rollback().
Date Fri, 01 Jul 2005 23:08:20 GMT
TomohitoNakayama wrote:

>
> I have found next implementation in
> org.apache.derby.impl.jdbc.EmbedConnection#close().
>
>   /* Throw error to match DB2/JDBC if a tran is pending in
> non-autocommit mode */
>   if (!autoCommit && !transactionIsIdle()) {
>    throw newSQLException(SQLState.LANG_INVALID_TRANSACTION_STATE);
>   }
>
> Are there any reason around compatibility with DB2 ?
>
Hi Tomohito,

This DB2 compatibility work was done as a a part of a past project in
Cloudscape before contribution to Apache.
I think Kathy Saunders summed it up nicely in this email.

http://mail-archives.apache.org/mod_mbox/db-derby-dev/200409.mbox/%3c414F1400.1030603@Source-Zone.com%3e

Our current focus per our charter  is standards.  I am not sure if there
is anything in the JDBC  standard about  calling close on a connection
with an active transaction. 

I  hope that answers your question.

Kathey



Mime
View raw message