Skip to content

sql: raise error if opaque statement receives nil plan node#57263

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
angelapwen:prevent-nil-plannode-opaque
Dec 1, 2020
Merged

sql: raise error if opaque statement receives nil plan node#57263
craig[bot] merged 1 commit intocockroachdb:masterfrom
angelapwen:prevent-nil-plannode-opaque

Conversation

@angelapwen
Copy link
Copy Markdown

@angelapwen angelapwen commented Nov 30, 2020

Addresses #56861.

Previously there was no check for a situation in which a planNode
was nil. For opaque statements, this resulted in occasional panics
when a nil planNode was returned. This commit adds a check for
opaque statements to make sure the planNode is not nil before
moving on to execution.

Release note: None

Previously there was no check for a situation in which a planNode
was nil. For opaque statements, this  resulted in occasional panics
when a nil planNode was returned. This commit adds a check for
opaque statements to make sure the planNode is not nil before
moving on to execution.

Release note: None
@angelapwen angelapwen requested review from a team, RaduBerinde and otan November 30, 2020 22:49
@angelapwen angelapwen self-assigned this Nov 30, 2020
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Member

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

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

:lgtm:

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

@angelapwen
Copy link
Copy Markdown
Author

bors r=RaduBerinde

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Dec 1, 2020

Build succeeded:

@craig craig bot merged commit 82f4274 into cockroachdb:master Dec 1, 2020
@angelapwen angelapwen deleted the prevent-nil-plannode-opaque branch February 5, 2021 00:15
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.

4 participants