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

Prevent loops in stored procedures from returning multiple result sets #1854

Merged
merged 10 commits into from
Jun 29, 2023

Conversation

fulghum
Copy link
Contributor

@fulghum fulghum commented Jun 28, 2023

The query in dolthub/dolt#6230 was causing rows from many result sets to be returned from a stored procedure. We already have code that limits BEGIN/END blocks to return the last SELECTed result set; this PR extends that logic to loop constructs as well.

Fixes: dolthub/dolt#6230

Dolt CI Checks: dolthub/dolt#6245

@fulghum fulghum marked this pull request as ready for review June 29, 2023 00:51
Copy link
Contributor

@Hydrocharged Hydrocharged left a comment

Choose a reason for hiding this comment

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

LGTM! Nice change

@fulghum fulghum merged commit 3a4afb2 into main Jun 29, 2023
@Hydrocharged Hydrocharged deleted the fulghum/bugfix-2 branch August 24, 2023 00:16
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.

Stored procedure includes results from SET statements
2 participants