Null columns fail to persist if they are empty

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Null columns fail to persist if they are empty

kalpana prakasam

If the table definition contains a null column, DBUnit expects a value to be present as part of the row element.
It doesn't seem to accept an empty value for a column. Is this a bug or is there a workaround for this issue?

Thanks,
Kalpana


      See the Web's breaking stories, chosen by people like you. Check out Yahoo! Buzz. http://in.buzz.yahoo.com/

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
dbunit-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dbunit-user
Reply | Threaded
Open this post in threaded view
|

Re: Null columns fail to persist if they are empty

Bing He
Kalpana, I found this info helpful.

Since DBUnit 2.3.0 there is a functionality called "column sensing"
which basically reads in the whole XML into a buffer and dynamically
adds new columns as they appear. It can be used as demonstrated in the
following example:

   boolean enableColumnSensing = true;
   IDataSet dataSet = new FlatXmlDataSet(
            new File("src/xml/flatXmlTableTest.xml"), false,
enableColumnSensing);

thanks.

On Tue, Jul 28, 2009 at 8:33 AM, kalpana
prakasam<[hidden email]> wrote:

>
> If the table definition contains a null column, DBUnit expects a value to be present as part of the row element.
> It doesn't seem to accept an empty value for a column. Is this a bug or is there a workaround for this issue?
>
> Thanks,
> Kalpana
>
>
>      See the Web's breaking stories, chosen by people like you. Check out Yahoo! Buzz. http://in.buzz.yahoo.com/
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> dbunit-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/dbunit-user
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
dbunit-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dbunit-user