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: allow DEALLOCATE ALL with a prepared statement #52940

Merged
merged 1 commit into from
Aug 18, 2020

Conversation

rafiss
Copy link
Collaborator

@rafiss rafiss commented Aug 17, 2020

PR #48842 added logic to exhaust portals after executing them. This had
issues when the portal being executed closes itself, which happens when
using DEALLOCATE in a prepared statement. Now we check if the portal
still exists before exhausting it.

There is no release note as this fixes a bug that only exists in
unreleased versions.

fixes #52915
fixes #52220
fixes #52880
fixes #52506

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@asubiotto asubiotto left a comment

Choose a reason for hiding this comment

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

:lgtm: thanks for the fix

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @asubiotto, @mjibson, and @yuzefovich)

@celiala celiala mentioned this pull request Aug 18, 2020
25 tasks
PR cockroachdb#48842 added logic to exhaust portals after executing them. This had
issues when the portal being executed closes itself, which happens when
using DEALLOCATE in a prepared statement. Now we check if the portal
still exists before exhausting it.

There is no release note as this fixes a bug that only exists in
unreleased versions.

Release note: None
@rafiss rafiss force-pushed the deallocate-in-prepared branch from d0840b2 to cb23025 Compare August 18, 2020 14:38
@rafiss
Copy link
Collaborator Author

rafiss commented Aug 18, 2020

tftr!

bors r=asubiotto

@craig
Copy link
Contributor

craig bot commented Aug 18, 2020

Build succeeded:

@craig craig bot merged commit f41ff14 into cockroachdb:master Aug 18, 2020
@rafiss rafiss deleted the deallocate-in-prepared branch August 18, 2020 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants