Skip to content

Commit

Permalink
Merge #46678
Browse files Browse the repository at this point in the history
46678: sqlbase: unimplemented error for fk on comp cols r=jordanlewis a=jordanlewis

Release note: None
Release justification: low risk error message change

Co-authored-by: Jordan Lewis <[email protected]>
  • Loading branch information
craig[bot] and jordanlewis committed Mar 27, 2020
2 parents 515406a + 3edd193 commit 31bce92
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/sql/sqlbase/structured.go
Original file line number Diff line number Diff line change
Expand Up @@ -3831,9 +3831,8 @@ func (desc *ColumnDescriptor) ComputedExprStr() string {
// CheckCanBeFKRef returns whether the given column is computed.
func (desc *ColumnDescriptor) CheckCanBeFKRef() error {
if desc.IsComputed() {
return pgerror.Newf(
pgcode.InvalidTableDefinition,
"computed column %q cannot be a foreign key reference",
return unimplemented.NewWithIssuef(
46672, "computed column %q cannot be a foreign key reference",
desc.Name,
)
}
Expand Down

0 comments on commit 31bce92

Please sign in to comment.