Skip to content

Add quotability to all SQL expression types#33210

Merged
roji merged 1 commit intodotnet:mainfrom
roji:Quotability
Mar 6, 2024
Merged

Add quotability to all SQL expression types#33210
roji merged 1 commit intodotnet:mainfrom
roji:Quotability

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
@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