ODP.NET output String parameter does not return value

♀尐吖头ヾ 提交于 2019-12-11 08:32:43

问题


I was defining a string output parameter in the RETURNING clause of an INSERT statement using ODP.NET. I was not able to get any value returned. It worked fine for other DbTypes.


回答1:


I tracked down the problem as being the following. Oracle seems to require the size parameter to be set for output string parameters to indicate the maximum size of the string to be retrieve. The default (0) causes the output value to be an empty string.



来源:https://stackoverflow.com/questions/27237622/odp-net-output-string-parameter-does-not-return-value

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