@@ -515,7 +515,7 @@ func (reference *ForeignKeyReferenceHandler) CheckReference(ctx *sql.Context, ro
515515 // We have a parent row, but for DECIMAL types we need to be strict about precision/scale
516516 if shouldReject := reference .validateDecimalMatch (ctx , row ); shouldReject {
517517 return sql .ErrForeignKeyChildViolation .New (reference .ForeignKey .Database , reference .ForeignKey .Table ,
518- reference .ForeignKey .Name , strings .Join (reference .ForeignKey .Columns , ", " ),
518+ reference .ForeignKey .Name , strings .Join (reference .ForeignKey .Columns , ", " ),
519519 reference .ForeignKey .ParentTable , strings .Join (reference .ForeignKey .ParentColumns , ", " ))
520520 }
521521 // We have a parent row so throw no error
@@ -542,7 +542,7 @@ func (reference *ForeignKeyReferenceHandler) CheckReference(ctx *sql.Context, ro
542542 }
543543
544544 return sql .ErrForeignKeyChildViolation .New (reference .ForeignKey .Database , reference .ForeignKey .Table ,
545- reference .ForeignKey .Name , strings .Join (reference .ForeignKey .Columns , ", " ),
545+ reference .ForeignKey .Name , strings .Join (reference .ForeignKey .Columns , ", " ),
546546 reference .ForeignKey .ParentTable , strings .Join (reference .ForeignKey .ParentColumns , ", " ))
547547}
548548
@@ -622,7 +622,7 @@ func (mapper *ForeignKeyRowMapper) GetIter(ctx *sql.Context, row sql.Row, refChe
622622 }
623623
624624 targetType := mapper .SourceSch [rowPos ].Type
625-
625+
626626 // Transform the type of the value in this row to the one in the other table for the index lookup, if necessary
627627 if mapper .TargetTypeConversions != nil && mapper .TargetTypeConversions [rowPos ] != nil {
628628 var err error
@@ -746,7 +746,6 @@ func GetForeignKeyTypeConversions(
746746 return nil , nil
747747 }
748748
749-
750749 fromType := childExtendedType
751750 toType := parentExtendedType
752751 if direction == ParentToChild {
0 commit comments