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

return error for ddl in create proc statements #2828

Merged
merged 3 commits into from
Jan 24, 2025
Merged

return error for ddl in create proc statements #2828

merged 3 commits into from
Jan 24, 2025

Conversation

jycor
Copy link
Contributor

@jycor jycor commented Jan 24, 2025

This PR moves the logic for validateStoredProcedure analyzer rule into the planbuilder, allowing for proper error messages.

Related: dolthub/dolt#8762

Copy link
Contributor

@max-hoffman max-hoffman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, shifting validation into binder is always good

"and will be added in a future release")
transform.Inspect(node, func(n sql.Node) bool {
switch n.(type) {
case *plan.CreateTable:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

something we could do at some point is aggregate some of these into flags, like for the DDL group

@jycor jycor merged commit 8a1af52 into main Jan 24, 2025
8 checks passed
@jycor jycor deleted the james/proc branch January 24, 2025 21:39
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.

2 participants