[Mono-dev] System.Data.OracleClient.OracleParameter.SetOracleType() bug?

Stefano Canepa sc at linux.it
Sun Oct 2 09:55:51 EDT 2011


On Sat, Oct 01, 2011 at 03:31:46AM -0700, iamwind wrote:
> 
> Tom Spink wrote:
> > 
> > Well, without any other context, I'd do this:
> > 
> > ///
> > if (value == null)
> >   valType = typeof(System.DBNull);
> > else
> >   valType = value.GetType();
> > ///
> > 
> > Which means for a 'null value', the 'value type' would be DBNull.
> > 
> > Hope this helps,
> > 
> > -- 
> > Tom Spink
> > 
> 
> That's better!
> Who can fix it in
> System.Data.OraceClient/System.Data.OracleClient/OracleParameter.cs?
> 
I think you'd better open a bug with the proposed patch.

Just one more question: did you tried this in a parallel mono 
enviroment? 

Bye
Stefano

-- 
Stefano Canepa aka sc: sc at linux.it - http://www.stefanocanepa.it
Three great virtues of a programmer: laziness, impatience and hubris.
Le tre grandi virtù di un programmatore: pigrizia, impazienza e
arroganza. (Larry Wall)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20111002/0b741d0a/attachment.bin 


More information about the Mono-devel-list mailing list