-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Regression in PostgreSQL Contains on array #20369
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Sure, here you go:
After NormalizeQueryableMethodCall:
After AllAnyContainsRewritingExpressionVisitor:
|
I'm assuming, because we have tests for it, that Contains on byte arrays is still working. Do we special case byte arrays somewhere? |
I thought about this some more... The Npgsql provider should actually be able to translate a simple Any on arrays - as long as the tree above doesn't produce any exceptions in preprocessing and makes it to translation, I should just handle this structure. So this is probably not an issue (though let me confirm). |
FYI just unskipped the tests and they're green, thanks! |
Since syncing EFCore.PG from commit 725adf7 to ac46335, Contains on arrays is broken. AllAnyContainsRewritingExpressionVisitor seems rewrites the Contains to Any, which then produces a translation failure. This rewriting seems problematic to me (shouldn't we leave alone calls on arrays or other stuff?), but let me know if this is intentional and I should change the provider to recognize Any on arrays instead of Contains.
The text was updated successfully, but these errors were encountered: