Skip to content

Commit

Permalink
Merge pull request #12514 from dt/valfk
Browse files Browse the repository at this point in the history
sql/sqlbase: skip validation of FKs during drop
  • Loading branch information
dt authored Dec 21, 2016
2 parents 39e36d5 + 0b23a14 commit bda6f2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/sql/sqlbase/structured.go
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,9 @@ func (desc *TableDescriptor) Validate(txn *client.Txn) error {
if err != nil {
return err
}
if desc.Dropped() {
return nil
}
return desc.validateCrossReferences(txn)
}

Expand Down

0 comments on commit bda6f2f

Please sign in to comment.