db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kathey Marsden (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-2576) setCreateDatabase does not work for EmbeddedXADataSource or EmbeddedConnectionPoolDataSource
Date Fri, 12 Oct 2007 19:13:50 GMT

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

Kathey Marsden updated DERBY-2576:

I looked at the test and found that at the time the issue occurs, we have
connectionAttributes set to "shutdown=true"
shutdownDatabase = "shutdown"
createDatabase  = "create"

If I clear connectionAttributes, and shutdown then the database will create properly and the
test will get further but ultimately fails with an ArrayIndexOutOfBounds exception that I
haven't investigated.  Since setting all three of these is not supported and it works with
createDatabase only set, I would like to close this issue as invalid.  Is that ok?

> setCreateDatabase does not work for EmbeddedXADataSource or EmbeddedConnectionPoolDataSource
> --------------------------------------------------------------------------------------------
>                 Key: DERBY-2576
>                 URL: https://issues.apache.org/jira/browse/DERBY-2576
>             Project: Derby
>          Issue Type: Bug
>          Components: JDBC
>    Affects Versions:
>            Reporter: Myrna van Lunteren
>            Assignee: Kathey Marsden
>            Priority: Minor
>         Attachments: DERBY-2576_tst.diff
> After implementing setCreateDatabase for ClientDataSource, and creating a test (see DERBY-2296)
I realized there was no such test for XADataSource or ConnectionPoolDataSource.
> However, the test I created failed with Embedded, because the database does not get created.
A database *does* get created using setConnectionAttributes(create=true). 
> Also, setShutdownDatabase does work (tested in XADSAuthenticationTest and PoolDSAuthenticationTest).

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

View raw message