-
Notifications
You must be signed in to change notification settings - Fork 190
EF Core 7.0: Wrong SQL generated for string.IsNullOrWhitespace #296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is related to the same issue as #272, which is associated with Bug 34989781. |
Ah, I see I found a dup :) Thanks. |
@alexkeh SELECT "i"."id", "i"."name", "c"."id", "c"."ItemId", "c"."name"
FROM "Item" "i"
LEFT JOIN "Color" "c" ON "i"."id" = "c"."ItemId"
WHERE "i"."data" = N'N/A'
ORDER BY "i"."id" instead of (generated by 3rd party provider) SELECT "i"."id", "i"."name", "c"."id" "id1", "c"."ItemId", "c"."name" "name1"
FROM "Item" "i"
LEFT JOIN "Color" "c" ON "i"."id" = "c"."ItemId"
WHERE DBMS_LOB.COMPARE("i"."data", TO_NCLOB('N/A')) = 0
ORDER BY "i"."id" Looks like it's the same reason we have this error in IsNullOrWhiteSpace. |
@arthur-liberman Thanks for the update. We'll take a look. |
Have you managed to reproduce this? This is a major blocker for us, is there any ETA on a fix? |
I don't have an ETA. If you need to get a fix ASAP, I would recommend opening a service request with Oracle Support. Oracle can then get you a one-off fix sooner. Typically, ODP.NET delivers patches via NuGet Gallery once a quarter. The next quarterly patch is coming up soon (July/August) and it doesn't look like a fix for this bug will make it by the cutoff date. |
Ok, that's what we will do. |
I've added to the bug log that this issue has high impact for you. However, to formally get a bug escalated, your SR needs to be associated with the bug and your team's commitment to participate in the escalation at the same level as the Oracle Support and dev team will be. i.e. if it's 24x7, both sides work on it 24x7 until resolution. If it's 8x5, then both sides work on it 8x5. Only a customer can make that commitment |
Fixed with Oracle EF Core 8. |
The provider generates wrong sql when mapper contains
string.IsNullOrWhiteSpace
and NCLOB.We get the following error:
ORA-00932: inconsistent datatypes: expected - got NCLOB
The generated SQL:
A 3rd party provider doesn't exhibit similar issues.
Full code to reproduce:
The text was updated successfully, but these errors were encountered: