Skip to content

Commit e2ede1e

Browse files
committed
[ga-format-pr] Run ./format_repo.sh to fix formatting
1 parent 27c16cf commit e2ede1e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sql/plan/foreign_key_editor.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -548,17 +548,17 @@ func (reference *ForeignKeyReferenceHandler) validateDecimalConstraints(row sql.
548548
if reference.RowMapper.Index == nil {
549549
return nil
550550
}
551-
551+
552552
indexColumnTypes := reference.RowMapper.Index.ColumnExpressionTypes()
553553
for i := range reference.ForeignKey.Columns {
554554
if i >= len(indexColumnTypes) {
555555
continue
556556
}
557-
557+
558558
childColIdx := reference.RowMapper.IndexPositions[i]
559559
childType := reference.RowMapper.SourceSch[childColIdx].Type
560560
parentType := indexColumnTypes[i].Type
561-
561+
562562
// For decimal types, check scale compatibility (following existing pattern for type-specific validation)
563563
if childDecimal, ok := childType.(sql.DecimalType); ok {
564564
if parentDecimal, ok := parentType.(sql.DecimalType); ok {
@@ -569,7 +569,7 @@ func (reference *ForeignKeyReferenceHandler) validateDecimalConstraints(row sql.
569569
}
570570
}
571571
}
572-
572+
573573
return nil
574574
}
575575

0 commit comments

Comments
 (0)