@@ -516,7 +516,7 @@ func (reference *ForeignKeyReferenceHandler) CheckReference(ctx *sql.Context, ro
516516 if shouldReject := reference .validateDecimalMatch (ctx , row ); shouldReject {
517517 // Use MySQL 8.4 compatible format for DECIMAL foreign key violations
518518 return sql .MySQL84 .ErrForeignKeyChildViolation .New (reference .ForeignKey .Database , reference .ForeignKey .Table ,
519- reference .ForeignKey .Name , strings .Join (reference .ForeignKey .Columns , ", " ),
519+ reference .ForeignKey .Name , strings .Join (reference .ForeignKey .Columns , ", " ),
520520 reference .ForeignKey .ParentTable , strings .Join (reference .ForeignKey .ParentColumns , ", " ))
521521 }
522522 // We have a parent row so throw no error
@@ -544,7 +544,7 @@ func (reference *ForeignKeyReferenceHandler) CheckReference(ctx *sql.Context, ro
544544
545545 // Use MySQL 8.4 compatible format for all foreign key violations going forward
546546 return sql .MySQL84 .ErrForeignKeyChildViolation .New (reference .ForeignKey .Database , reference .ForeignKey .Table ,
547- reference .ForeignKey .Name , strings .Join (reference .ForeignKey .Columns , ", " ),
547+ reference .ForeignKey .Name , strings .Join (reference .ForeignKey .Columns , ", " ),
548548 reference .ForeignKey .ParentTable , strings .Join (reference .ForeignKey .ParentColumns , ", " ))
549549}
550550
@@ -624,7 +624,7 @@ func (mapper *ForeignKeyRowMapper) GetIter(ctx *sql.Context, row sql.Row, refChe
624624 }
625625
626626 targetType := mapper .SourceSch [rowPos ].Type
627-
627+
628628 // Transform the type of the value in this row to the one in the other table for the index lookup, if necessary
629629 if mapper .TargetTypeConversions != nil && mapper .TargetTypeConversions [rowPos ] != nil {
630630 var err error
@@ -748,7 +748,6 @@ func GetForeignKeyTypeConversions(
748748 return nil , nil
749749 }
750750
751-
752751 fromType := childExtendedType
753752 toType := parentExtendedType
754753 if direction == ParentToChild {
0 commit comments