ODP .NET Parameter problem with uint datatype

梦想的初衷 提交于 2019-12-06 10:20:13

The problem it turns out had nothing to do with the data types. I used the Int64 in the Oracle Parameter and it worked, but only after setting the BindByName property on my Command object to true.

Apparently the default for the .NET System.Data.OracleClient provider 'BINDING BY NAME', whereas the default for Oracle.DataAccess is 'BIND BY POSITION'.

It would have been nice if the Oracle Exception caught would have contained more information, like which parameter was throwing the exception. This may have helped me discover the issue sooner.

I think that OracleDecimal is the way to go here check out Data Type Conversion; even here they map int34 to BINARY_INTEGER.

by the way, OracleDecimal is huge and you shouldn't run into any problems

Here is another really good reference: OracleParameterClass. For return parameters the the OracleDbTypeEx can be very helpful.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!