Skip to content

Commit

Permalink
Merge #36823
Browse files Browse the repository at this point in the history
36823: sql: fix COMMENT ON crash with -vmodule r=RaduBerinde a=RaduBerinde

Fixes a crash that happens when `COMMENT ON` is executed with a high V
level.

Fixes #36822.

Release note (bug fix): Fixed a crash caused by running `COMMENT ON`
with verbose logging turned on.

Co-authored-by: Radu Berinde <[email protected]>
  • Loading branch information
craig[bot] and RaduBerinde committed Apr 13, 2019
2 parents c53084c + 631aa58 commit 23e418e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/sql/plan_physical_props.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ func planPhysicalProps(plan planNode) physicalProps {
case *valuesNode:
case *virtualTableNode:
case *zeroNode:
case *commentOnTableNode:
case *commentOnColumnNode:
default:
panic(fmt.Sprintf("unhandled node type: %T", plan))
}
Expand Down

0 comments on commit 23e418e

Please sign in to comment.