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

2011-10-01 Thread iamwind
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!

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

2011-09-29 Thread iamwind
the source code: private void SetOracleType (OracleType type, bool inferring) { FreeHandle (); Type valType = value.GetType (); string exception =