Null columns fail to persist if they are empty

View: New views
2 Messages — Rating Filter:   Alert me  

Null columns fail to persist if they are empty

by kalpana prakasam :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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
dbunit-user@...
https://lists.sourceforge.net/lists/listinfo/dbunit-user

Re: Null columns fail to persist if they are empty

by Bing He :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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<kalpanaprakasam@...> 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
> dbunit-user@...
> 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
dbunit-user@...
https://lists.sourceforge.net/lists/listinfo/dbunit-user