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

release-20.1: sql: fix panic when SHOW RANGES is called with a virtual table #48347

Merged
merged 1 commit into from
May 5, 2020

Conversation

rytaft
Copy link
Collaborator

@rytaft rytaft commented May 4, 2020

Backport 1/1 commits from #47500.

/cc @cockroachdb/release


Prior to this commit, calling SHOW RANGES or SHOW RANGE FOR ROW with
a virtual table caused a panic, since virtual tables have no ranges.
This commit fixes the problem by returning an error instead of a panic.

Fixes #44326

Release note (bug fix): Fixed a panic that could occur when SHOW RANGES
or SHOW RANGE FOR ROW was called with a virtual table.

@rytaft rytaft requested a review from RaduBerinde May 4, 2020 15:04
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@blathers-crl
Copy link

blathers-crl bot commented May 4, 2020

❌ The GitHub CI (Cockroach) build has failed on e0932ac8.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.

Prior to this commit, calling SHOW RANGES or SHOW RANGE FOR ROW with
a virtual table caused a panic, since virtual tables have no ranges.
This commit fixes the problem by returning an error instead of a panic.

Fixes cockroachdb#44326

Release note (bug fix): Fixed a panic that could occur when SHOW RANGES
or SHOW RANGE FOR ROW was called with a virtual table.
@rytaft rytaft requested a review from a team as a code owner May 4, 2020 22:36
@rytaft
Copy link
Collaborator Author

rytaft commented May 4, 2020

Sorry, had to change this to match #47516

PTAL

@rytaft
Copy link
Collaborator Author

rytaft commented May 5, 2020

TFTR!

@rytaft rytaft merged commit 240a896 into cockroachdb:release-20.1 May 5, 2020
@rytaft rytaft deleted the backport20.1-47500 branch May 5, 2020 11:37
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.

None yet

3 participants