Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
10.3.1.4
-
None
-
None
Description
In the following scenario:
ClientXADataSource dsx = new ClientXADataSource();
dsx.setDatabaseName(dbName);
XAConnection xac = dsx.getXAConnection();
XAResource xar = xac.getXAResource();
Connection cs1 = xac.getConnection();
Statement sru1 = cs1.createStatement();
sru1.setCursorName("SN1");
sru1.executeUpdate("insert into intTable values 1,2,3");
Connection conn2 = s.getConnection();
When using an EmbeddedXADataSource, cs1 and conn2 are the same connection. However with Client they're not.
Found during conversion of test checkDataSource to DataSourceTest.java.
If this difference is correct, or acceptable, it should get documented...
With DerbyNetClient, they're not the same.
Attachments
Attachments
Issue Links
- is duplicated by
-
DERBY-3431 DatabaseMetaData.getConnection returns the wrong connection when using connection pooling
- Closed
- 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