Skip to content

Commit 7dd3eea

Browse files
committed
[ga-format-pr] Run ./format_repo.sh to fix formatting
1 parent b8a66a6 commit 7dd3eea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/types/enum.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ func (t EnumType) Convert(ctx context.Context, v interface{}) (interface{}, sql.
238238
return t.Convert(ctx, string(value))
239239
}
240240

241-
// For other types not handled above, check if we're in strict mode
241+
// For other types not handled above, check if we're in strict mode
242242
// In test contexts (empty context), default to non-strict behavior
243243
if sqlCtx, ok := ctx.(*sql.Context); ok {
244244
sqlMode := sql.LoadSqlMode(sqlCtx)
@@ -248,7 +248,7 @@ func (t EnumType) Convert(ctx context.Context, v interface{}) (interface{}, sql.
248248
// In non-strict mode, return empty string (index 0) for invalid enum values
249249
return uint16(0), sql.InRange, nil
250250
}
251-
251+
252252
// If we can't determine SQL mode (e.g., test contexts), use non-strict behavior
253253
return uint16(0), sql.InRange, nil
254254
}

0 commit comments

Comments
 (0)