Skip to content

Commit

Permalink
sql: make ALTER CONSTRAINT reference cockroachdb#31632
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
knz committed Nov 28, 2018
1 parent 2f66a23 commit 6a19f86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/sql/parser/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2533,7 +2533,7 @@ func TestUnimplementedSyntax(t *testing.T) {
issue int
expected string
}{
{`ALTER TABLE a ALTER CONSTRAINT foo`, 0, `alter constraint`},
{`ALTER TABLE a ALTER CONSTRAINT foo`, 31632, `alter constraint`},
{`ALTER TABLE a ALTER b SET NOT NULL`, 28751, ``},
{`ALTER TABLE a RENAME CONSTRAINT b TO c`, 0, `alter table rename constraint`},

Expand Down
2 changes: 1 addition & 1 deletion pkg/sql/parser/sql.y
Original file line number Diff line number Diff line change
Expand Up @@ -1487,7 +1487,7 @@ alter_table_cmd:
}
}
// ALTER TABLE <name> ALTER CONSTRAINT ...
| ALTER CONSTRAINT constraint_name error { return unimplemented(sqllex, "alter constraint") }
| ALTER CONSTRAINT constraint_name error { return unimplementedWithIssueDetail(sqllex, 31632, "alter constraint") }
// ALTER TABLE <name> VALIDATE CONSTRAINT ...
| VALIDATE CONSTRAINT constraint_name
{
Expand Down

0 comments on commit 6a19f86

Please sign in to comment.