diff --git a/pkg/sql/parser/parse_test.go b/pkg/sql/parser/parse_test.go index b960343115a2..5673f80f885f 100644 --- a/pkg/sql/parser/parse_test.go +++ b/pkg/sql/parser/parse_test.go @@ -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`}, diff --git a/pkg/sql/parser/sql.y b/pkg/sql/parser/sql.y index df251027b45d..fd812e005a48 100644 --- a/pkg/sql/parser/sql.y +++ b/pkg/sql/parser/sql.y @@ -1487,7 +1487,7 @@ alter_table_cmd: } } // ALTER TABLE 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 VALIDATE CONSTRAINT ... | VALIDATE CONSTRAINT constraint_name {