You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Dyre Tjeldvoll (JIRA)" <de...@db.apache.org> on 2006/04/25 13:27:06 UTC
[jira] Commented: (DERBY-1236) Verify that applications can't
manipulate the transaction state while inside a distributed transaction.
[ http://issues.apache.org/jira/browse/DERBY-1236?page=comments#action_12376235 ]
Dyre Tjeldvoll commented on DERBY-1236:
---------------------------------------
setAutoCommit(), commit() and rollback() inside a global transaction is tested in jdbcapi/XATest.java (and others).
setSavepoint() and setSavepoint(String) are NOT tested, but I have verfied that they throw an exception in a global transaction.
The exceptions thrown are (note that the setSavepoint methods uses the same Exception/error message as rollback):
commit():
SQL Exception: Cannot commit a global transaction using the Connection, commit p
rocessing must go thru XAResource interface.
rollback():
SQL Exception: Cannot rollback a global transaction using the Connection, commit
processing must go thru XAResource interface.
setAutoCommit(true):
SQL Exception: Cannot set AUTOCOMMIT ON when in an XA connection.
setSavepoint():
SQL Exception: Cannot rollback a global transaction using the Connection, commit
processing must go thru XAResource interface.
setSavepoint(String):
SQL Exception: Cannot rollback a global transaction using the Connection, commit
processing must go thru XAResource interface.
I plan to add setSavepoint() and setSavepoint(String) as test cases in XATest.java.
> Verify that applications can't manipulate the transaction state while inside a distributed transaction.
> -------------------------------------------------------------------------------------------------------
>
> Key: DERBY-1236
> URL: http://issues.apache.org/jira/browse/DERBY-1236
> Project: Derby
> Type: Improvement
> Reporter: Rick Hillegas
> Assignee: Dyre Tjeldvoll
>
> The next rev of the JDBC4 spec will clarify that applications may not call the following methods while inside distributed transactions: setAutoCommit( true ), commit(), rollback(), and setSavepoint(). We should verify that we conform.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira