File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -548,17 +548,17 @@ func (reference *ForeignKeyReferenceHandler) validateDecimalConstraints() error
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 {
@@ -570,7 +570,7 @@ func (reference *ForeignKeyReferenceHandler) validateDecimalConstraints() error
570570 }
571571 }
572572 }
573-
573+
574574 return nil
575575}
576576
You can’t perform that action at this time.
0 commit comments