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

Query: Disallow FromSql on TPT/TPC #21508

Closed
smitpatel opened this issue Jul 3, 2020 · 2 comments · Fixed by #21725
Closed

Query: Disallow FromSql on TPT/TPC #21508

smitpatel opened this issue Jul 3, 2020 · 2 comments · Fixed by #21725
Assignees
Labels
area-query closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-enhancement
Milestone

Comments

@smitpatel
Copy link
Contributor

Currently it is likely to just fail abruptly. We can either make it work or throw when used on TPT hierarchy.

@smitpatel
Copy link
Contributor Author

@AndriySvyryd - Throw or allow? Same would be applicable to TVFs

@AndriySvyryd
Copy link
Member

Throw. FromSql support tracked by #21627. TVF tracked by #19970

@smitpatel smitpatel changed the title Query: Allow FromSql on TPT/TPC Query: Disallow FromSql on TPT/TPC Jul 22, 2020
smitpatel added a commit that referenced this issue Jul 22, 2020
- Throw exception when using FromSql* methods
- Throw if a TVF is mapped to TPT
- Throw if construction of SelectExpression with custom TableExpression is done when TPT

Resolves #21508
@smitpatel smitpatel added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Jul 22, 2020
smitpatel added a commit that referenced this issue Jul 22, 2020
- Throw exception when using FromSql* methods
- Throw if a TVF is mapped to TPT
- Throw if construction of SelectExpression with custom TableExpression is done when TPT

Resolves #21508
@ghost ghost closed this as completed in #21725 Jul 22, 2020
ghost pushed a commit that referenced this issue Jul 22, 2020
- Throw exception when using FromSql* methods
- Throw if a TVF is mapped to TPT
- Throw if construction of SelectExpression with custom TableExpression is done when TPT

Resolves #21508
@ajcvickers ajcvickers modified the milestones: 5.0.0, 5.0.0-rc1 Aug 14, 2020
@ajcvickers ajcvickers modified the milestones: 5.0.0-rc1, 5.0.0 Nov 7, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-query closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants