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 22, 2018
1 parent 9e6757f commit bd1e425
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 @@ -2569,7 +2569,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 @@ -1537,7 +1537,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 bd1e425

Please sign in to comment.