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

sql: disallow invocation of procedures outside of CALL #112690

Merged
merged 2 commits into from
Oct 20, 2023

Conversation

mgartner
Copy link
Collaborator

@mgartner mgartner commented Oct 19, 2023

sql: disallow invocation of procedures outside of CALL

This commit adds some missing checks to ensure that procedures cannot be
invoked in any context besides as the root expression in CALL
statements.

Epic: CRDB-25388

Release note: None

sql: add tests with function invocation in procedure argument

This commit adds a couple of tests that show that functions can be used
in procedure argument expressions.

Release note: None

@mgartner mgartner added the backport-23.2.x Flags PRs that need to be backported to 23.2. label Oct 19, 2023
@mgartner mgartner requested review from a team as code owners October 19, 2023 15:10
@mgartner mgartner changed the title Proc call sites sql: disallow invocation of procedures outside of CALL Oct 19, 2023
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@rharding6373 rharding6373 left a comment

Choose a reason for hiding this comment

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

:lgtm: The extra test coverage for unsupported procedure call sites is nicely done!

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @DrewKimball)

Copy link
Collaborator

@DrewKimball DrewKimball left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 6 of 6 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! 2 of 0 LGTMs obtained (waiting on @mgartner)

This commit adds some missing checks to ensure that procedures cannot be
invoked in any context besides as the root expression in `CALL`
statements.

Release note: None
This commit adds a couple of tests that show that functions can be used
in procedure argument expressions.

Release note: None
@mgartner
Copy link
Collaborator Author

TFTR!

bors r+

@craig craig bot merged commit 48baa96 into cockroachdb:master Oct 20, 2023
3 checks passed
@craig
Copy link
Contributor

craig bot commented Oct 20, 2023

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.2.x Flags PRs that need to be backported to 23.2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants