Skip to content

Commit

Permalink
Merge pull request #88726 from cockroachdb/blathers/backport-release-…
Browse files Browse the repository at this point in the history
…22.1-88462
  • Loading branch information
ajwerner authored Nov 30, 2022
2 parents ed8f9fc + 9662a2f commit f9730bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/sql/parser/sql.y
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,7 @@ alter_ddl_stmt:
// ALTER TABLE ... ALTER [COLUMN] <colname> DROP NOT NULL
// ALTER TABLE ... ALTER [COLUMN] <colname> DROP STORED
// ALTER TABLE ... ALTER [COLUMN] <colname> [SET DATA] TYPE <type> [COLLATE <collation>]
// ALTER TABLE ... ALTER PRIMARY KEY USING INDEX <name>
// ALTER TABLE ... ALTER PRIMARY KEY USING COLUMNS ( <colnames...> )
// ALTER TABLE ... RENAME TO <newname>
// ALTER TABLE ... RENAME [COLUMN] <colname> TO <newname>
// ALTER TABLE ... VALIDATE CONSTRAINT <constraintname>
Expand Down Expand Up @@ -2434,8 +2434,7 @@ alter_table_cmd:
/* SKIP DOC */
return unimplementedWithIssueDetail(sqllex, 22456, "alter table no inherits")
}
// ALTER TABLE <name> VALIDATE CONSTRAINT ...
// ALTER TABLE <name> ALTER PRIMARY KEY USING INDEX <name>
// ALTER TABLE <name> ALTER PRIMARY KEY USING COLUMNS ( <colnames...> )
| ALTER PRIMARY KEY USING COLUMNS '(' index_params ')' opt_hash_sharded opt_with_storage_parameter_list
{
$$.val = &tree.AlterTableAlterPrimaryKey{
Expand All @@ -2444,6 +2443,7 @@ alter_table_cmd:
StorageParams: $10.storageParams(),
}
}
// ALTER TABLE <name> VALIDATE CONSTRAINT ...
| VALIDATE CONSTRAINT constraint_name
{
$$.val = &tree.AlterTableValidateConstraint{
Expand Down

0 comments on commit f9730bd

Please sign in to comment.