-
Notifications
You must be signed in to change notification settings - Fork 227
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
Pattern match comparisons and generate PostgreSQL row value comparisons #2111
Comments
Assuming we do something in dotnet/efcore#26822, this should be reverted. |
I am reverting this. As per dotnet/efcore#26822 (comment), the right way for users to specify this is via C# tuple syntax - even if that isn't supported today (except maybe via explicit |
Note: #2349 represents a better approach to this. |
PG supports
(x, y) > (1, 2)
, which is the same asx > 1 || x == 1 && y > 2
. We can pattern-match the latter and simplify it to the former.For background, this is particularly useful for keyset pagination with multiple columns.
Not sure if the simplification has actual benefits beyond prettier SQL - but this is a weekend project for playing around with expression trees :)
The text was updated successfully, but these errors were encountered: