ORA-00913: too many values

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
TheCoolest
Posts: 22
Joined: Tue 24 Mar 2020 11:02

ORA-00913: too many values

Post by TheCoolest » Tue 24 Mar 2020 11:11

We are using Devart.Data.Oracle.EFCore - v9.10.909 in our EF Core 3.1.1 project.
We've found a new regression, which wasn't there when we were using EF Core 2.2.
We have some lists which may contain more than 1,000 elements, on which we make '.Contains()' queries.
In the past it has worked just fine, the SQL generated had the list split into multiple IN clauses.
In the new version we're getting the ORA-00913 error, and in the generated SQL we can see that there is no separation into multiple IN clauses.
In the mean time, our solution was to create our own implementation of splitting the query into multiple IN clauses. But we would appreciate a fix for this, as this has been working perfectly in the past.

*Edit:* Apologies, I think I should have posted in the Entity Framework section, not dotConnect. Please move this topic if I made a mistake.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: ORA-00913: too many values

Post by Shalex » Fri 27 Mar 2020 15:06

The bug with using collections with more than 1000 items in a .Contains() method in EF Core 3 is fixed. We will notify you when the new public build of dotConnect for Oracle is available for download.

TheCoolest
Posts: 22
Joined: Tue 24 Mar 2020 11:02

Re: ORA-00913: too many values

Post by TheCoolest » Fri 27 Mar 2020 19:36

Great to hear! Thanks for the quick handling of this problem.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: ORA-00913: too many values

Post by Shalex » Sat 04 Apr 2020 13:48

New build of dotConnect for Oracle 9.11.980 is available for download now: viewtopic.php?f=1&t=40466.

TheCoolest
Posts: 22
Joined: Tue 24 Mar 2020 11:02

Re: ORA-00913: too many values

Post by TheCoolest » Sat 04 Apr 2020 13:57

Great! Thank you for the heads up.

Post Reply