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

Allow SqlFragmentExpression to have a type/type mapping #34995

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

roji
Copy link
Member

@roji roji commented Oct 28, 2024

We use SqlFragmentExpression to represent arbitrary SQL fragments which don't have a better representation. Right now, the type is hard-coded to string (arbitrary) and the node cannot have a type mapping. However, it's sometimes necessary to use such fragments to represent specific types, so this PR allows constructing fragments with a Type and TypeMapping, like any other SqlExpression.

This also changes the default type from string to object.

@roji roji requested a review from a team October 28, 2024 06:57
@roji
Copy link
Member Author

roji commented Oct 29, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@roji roji enabled auto-merge (squash) October 29, 2024 18:24
@roji roji merged commit ac5bd7b into dotnet:main Dec 4, 2024
7 checks passed
@roji roji deleted the SqlFragment branch December 4, 2024 01:01
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants