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/[EMAIL
PROTECTED]
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