[Mono-dev] Error converting Oracle Types

APS dev.malst at apsystems.it
Mon Mar 19 08:23:44 EDT 2007


Hi guys,
I've found that if I create a parameter of an OracleCommand passing a 
DataRow[index] object as value, if this object contains a number the 
DbType properties assume VarNumeric value.
The strange thing is that if I make something like

myparam.DbType=myparam.DbType

(reassingning it's own value) I obtain this error:

System.ArgumentException: No mapping exists from DbType VarNumeric to 
a known OracleType.
   at System.Data.OracleClient.OracleParameter.SetDbType (DbType 
type) [0x00000]
   at System.Data.OracleClient.OracleParameter.set_DbType (DbType 
value) [0x00000]

so I think there's some incongruence between the internal DbType 
evaluation and the conversion made by the SetDbType.
I'm wrong?




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070319/b83587bb/attachment.html 


More information about the Mono-devel-list mailing list