Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
10.3.1.4
-
None
-
Embedded/Client difference
Description
In the following scenario from converted test DataSourceTest:
(non-tested code based on the test code)
----------------
ClientXADataSource dsx = new ClientXADataSource();
dsx.setDatabaseName("tstdb");
XAConnection xac = dsx.getXAConnection();
XAConnection xac2 = dsx.getXAConnection();
XAResource xar2 = xac2.getXAResource();
xac2.close();
// allow close on already closed XAConnection
xac2.close();
try
catch (SQLException sqle)
{ System.out.println("expect a 08003 as with Embedded"); }------------------
With DerbyNetClient, the xac2.getXAResource() does not return an SQLException.
This ought to be documented if expected, or fixed.
Attachments
Attachments
Issue Links
- is part of
-
DERBY-310 Document and/or change Derby client code to match behavior with Embedded driver where possible.
- Closed
- relates to
-
DERBY-2492 convert checkDataSource, checkDataSource30 and checkDriver.java to junit
- Closed