Skip to content
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

Add quotability to all SQL expression types #33210

Merged
merged 1 commit into from
Mar 6, 2024
Merged

Conversation

roji
Copy link
Member

@roji roji commented Feb 29, 2024

Here's the next building block in the precompiled query story: this adds quoting functionality (Quote()) to all nodes which can appear in the SQL tree (see #33008 for more background). Although large, this PR is pretty straightforward, just adding the proper functionality to all nodes.

Note that I'm working on good testing infra in parallel, but as it's end-to-end testing, it depends on various things that are still to come (e.g. actually generating the interceptors etc.). If interested, check out https://github.com/roji/efcore/blob/PrecompiledQueries/test/EFCore.Relational.Specification.Tests/Query/PrecompiledQueryRelationalTestBase.cs#L14, which is where the ongoing work on the tests is happening. We'll definitely have to do another pass at some point to verify that everything is properly covered.

Closes #33008

@roji roji requested a review from a team February 29, 2024 23:43
@roji roji merged commit fbfd468 into dotnet:main Mar 6, 2024
7 checks passed
@roji roji deleted the Quotability branch March 6, 2024 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make all SQL expression nodes quotable
2 participants