Skip to content

Commit 78219a6

Browse files
authored
fix: Eternal recursion in scalar.MonthInterval (#1477)
Extracted from #1476
1 parent aa35ce7 commit 78219a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scalar/interval.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func (s *MonthInterval) Set(value any) error {
6767
if v == nil {
6868
return s.Int.Set(nil)
6969
}
70-
return s.Set(value)
70+
return s.Set(*v)
7171
case map[string]any:
7272
b, _ := json.Marshal(v)
7373
return s.Set(b)

0 commit comments

Comments
 (0)