Getting ORA-00932: inconsistent datatypes: expected - got CLOB with Database First in .net

。_饼干妹妹 提交于 2020-01-25 02:50:29

问题


So I am using EF database first on an oracle db. I am getting the above error when I do this in my code:

contractType.CLIENT_TYPE != null && contractType.CLIENT_TYPE.ToUpper() == "POL"

That column is defined as VARCHAR2(10 BYTE) in Oracle and the .net type is string.

Did a lot of searching and no one really mentions this error in the context of .net. Hoping someone might have an idea.


回答1:


So I figured out a solution to this. I was using Odp.net version 11. Apparently this is a bug with certain linq statements using the where extension method. I upgraded to odp.net version 12 and it fixed the issue.



来源:https://stackoverflow.com/questions/29607790/getting-ora-00932-inconsistent-datatypes-expected-got-clob-with-database-fir

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