db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Hillegas (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-1018) Client xa Statement.getConnection and DatabaseMetadata.getConnection returns underlying NetXAConnection instead of Logical connection
Date Tue, 21 Jul 2009 15:57:14 GMT

     [ https://issues.apache.org/jira/browse/DERBY-1018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rick Hillegas updated DERBY-1018:
---------------------------------

    Attachment: ClientXADataSourceTest.java

Attaching ClientXADataSourceTest.java, which demonstrates that this bug has been fixed.

> Client xa Statement.getConnection and DatabaseMetadata.getConnection returns underlying
NetXAConnection instead of  Logical connection
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-1018
>                 URL: https://issues.apache.org/jira/browse/DERBY-1018
>             Project: Derby
>          Issue Type: Bug
>          Components: JDBC, Network Client
>    Affects Versions: 10.1.3.1, 10.2.1.6, 10.3.2.1, 10.4.1.3
>            Reporter: Kathey Marsden
>         Attachments: ClientXADataSourceTest.java
>
>
> For client XA a  Statement.getConnection() and DatabaseMetaData.getConnection() return
a NetXAConnection instead of a LogicalConnection.
> e.g. for a connection obtained from a ClientXADataSource:
>  Statement stmt = conn.createStatement();
>   System.out.println("conn:" + conn + "stmt.getConnection():" + stmt.getConnection());
> yields
> conn:org.apache.derby.client.am.LogicalConnection@11b9fb1stmt.getConnection():org.apache.derby.client.net.NetXAConnection@540408

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message