oracle / dotnet-db-samples

.NET code samples for Oracle database developers #OracleDotNet
http://otn.oracle.com/dotnet
MIT License
419 stars 190 forks source link

EF Core 8.0: ORA-00932 - expected - got CLOB #389

Open arthur-liberman opened 5 months ago

arthur-liberman commented 5 months ago

Hi, I think this issue might be related to an earlier issue #296 I opened, or maybe not. It's very easy to reproduce. Consider this query (not very imaginative, but it reproduces) var res = await dbContext.Categories.Where(c=>c.Name.Contains(c.SubName)).ToListAsync();

alexkeh commented 5 months ago

Did this problem start occurring with EF Core 8.0.2?

If so, the problem could be the same as #362, which is a result of EF Core base bug: https://github.com/dotnet/efcore/issues/33218

arthur-liberman commented 5 months ago

It's not the same, I applied AppContext.SetSwitch("Microsoft.EntityFrameworkCore.Issue32325", true); and it solved another issue where strings were concatenated, but this issue remains. Please try to reproduce, you should see that the workaround has no effect.

alexkeh commented 4 months ago

I was able to reproduce your error. I have filed a bug (36790369) to have the Oracle .NET dev team investigate. Thanks for reporting the issue!