Skip to content

Commit 238cc56

Browse files
committed
[ga-format-pr] Run ./format_repo.sh to fix formatting
1 parent 647e8fd commit 238cc56

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
@@ -240,7 +240,7 @@ func (t EnumType) Convert(ctx context.Context, v interface{}) (interface{}, sql.
240240
return t.Convert(ctx, string(value))
241241
}
242242

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

0 commit comments

Comments
 (0)