[Mono-bugs] [Bug 564833] DataAdapter's fill method throws exception in connection with DbProviderFactories
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Dec 27 18:03:33 EST 2009
http://bugzilla.novell.com/show_bug.cgi?id=564833
http://bugzilla.novell.com/show_bug.cgi?id=564833#c1
Steven Berry <steven at berry.asn.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |steven at berry.asn.au
--- Comment #1 from Steven Berry <steven at berry.asn.au> 2009-12-27 23:03:29 UTC ---
I have reproduced it using PostgreSQL (Npgsql).
The problem appears to be that _selectCommand is not being set properly.
Perhaps there is a duplicate property in a base class, I have not investigated.
The following workaround allows my program to work.
For .NET 2.0, set the _selectCommand field directly instead of using the
SelectCommand property.
public override int Fill (DataSet dataSet)
{
#if NET_2_0
return Fill (dataTable, _selectCommand, _behavior);
#else
return Fill (dataTable, ((IDbDataAdapter) this).SelectCommand, _behavior);
#endif
}
public int Fill (DataTable dataTable)
{
#if NET_2_0
return Fill (dataSet, 0, 0, DefaultSourceTableName, _selectCommand,
_behavior);
#else
return Fill (dataSet, 0, 0, DefaultSourceTableName, ((IDbDataAdapter)
this).SelectCommand, _behavior);
#endif
}
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list