Re : dbunit-user Digest, Vol 19, Issue 9

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re : dbunit-user Digest, Vol 19, Issue 9

Sébastien LE CALLONNEC
Oh, you're right, I've found it too : http://sourceforge.net/tracker/index.php?func=detail&aid=1710743&group_id=47439&atid=449491
Any chance of getting the proposed patch applied to the dbunit codebase?  Looks good to me...

Regards,
Sébastien.


----- Message d'origine ----
De : Arnaud Brunet <[hidden email]>
À : [hidden email]
Envoyé le : Lundi, 26 Novembre 2007, 20h55mn 42s
Objet : Re: [dbunit-user] dbunit-user Digest, Vol 19, Issue 9

Hi Sébastien,
I already fixed by myself. And i found this bug in bugzilla.
Thanks.

Regards,
Arnaud
 

----------------------------------------------------------------------

Message: 1
Date: Mon, 26 Nov 2007 11:55:07 +0000 (GMT)
From: S?bastien LE CALLONNEC <[hidden email] >
Subject: [dbunit-user] Re : DataSourceDatabaseTester skip schema
        information
To: [hidden email]
Message-ID: <[hidden email]>
Content-Type: text/plain; charset="iso-8859-1"

Hi Arnaud,


It looks like an issue with DbUnit:  it simply doesn't do anything with the schema passed to the DataSourceDatabaseTester.  I guess the code in that class should something similar to what is done JdbcDatabaseTester, that is:

      if( getSchema() != null )
         return new DatabaseConnection( conn, getSchema() );

Looks like an easy fix, but that would obviously require some testing...

Regards,

S?bastien.

----- Message d'origine ----
De : Arnaud Brunet <[hidden email]>
? : [hidden email]
Envoy? le : Mardi, 20 Novembre 2007, 8h59mn 32s
Objet : [dbunit-user] DataSourceDatabaseTester skip schema information

Hi,

In my project, I use two types of IDatabaseTester : a DataSourceDatabaseTester and JdbcDatabaseTester.
I create my IDatabaseTester with :
dsTester = new DataSourceDatabaseTester(ds);
dsTester.setSchema(
schema.toUpperCase());

and
jdbcTester = new JdbcDatabaseTester(driver, url, user, pass);
jdbcTester.setSchema (schema.toUpperCase());

In
Jdbc case, DBUnit use the good schema. But in case of Datasource DBUnit
skip the schema. And I have an ambiguous table exception.


Why DBUnit doesn't use schema information for DataSource connection ?


Regards,
Arnaud






      _____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

------------------------------

_______________________________________________
dbunit-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dbunit-user


End of dbunit-user Digest, Vol 19, Issue 9
******************************************




Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
dbunit-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dbunit-user