db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julius Stroffek (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-2087) Clean up of a database server directory after running junit tests.
Date Thu, 01 Feb 2007 17:25:06 GMT

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

Julius Stroffek updated DERBY-2087:
-----------------------------------

    Attachment: d2087_round2_try2.stat
                d2087_round2_try2.diff

I created an additional patch which uses logical database names in additionalDatabaseDecorator
function (which replaces singleUseDatabaseDecorator with database name). I added also a openConnection
method where one can specify a connection attributes as a string.

Since the prototype of new method openConnection(String dbName, String connectionAttributes)
added to Connector interface conflicts
with the openConnection(String user, String password) and this method is not used I commented
it and have a plan to remove it since it is possible to specify user name and password in
connection attributes. Is ok to do it this way or it is better to define connection properties
in Properties object instead of string? I think that using String for connection attributes
is simpler to use.

I ran derbyall and suites.All without failures. Please, give me any comments or suggestions.


> Clean up of a database server directory after running junit tests.
> ------------------------------------------------------------------
>
>                 Key: DERBY-2087
>                 URL: https://issues.apache.org/jira/browse/DERBY-2087
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.3.0.0
>            Reporter: Julius Stroffek
>         Assigned To: Julius Stroffek
>            Priority: Minor
>             Fix For: 10.3.0.0
>
>         Attachments: d2087.diff, d2087.stat, d2087_round2.diff, d2087_round2.stat, d2087_round2_try2.diff,
d2087_round2_try2.stat, d2087_try2.diff, d2087_try2.stat
>
>
> If I create a test using multiple connections using code like this 
> 	DataSource ds1 = JDBCDataSource.getDataSource("FIRSTDB1");
> 	JDBCDataSource.setBeanProperty(ds1, "connectionAttributes", "create=true");
> 	Connection conn1 = ds1.getConnection();
> the files created on a server does not get cleaned.

-- 
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