Skip to content

Commit 4df3b46

Browse files
authored
fix: Remove uint validation (#942)
Removing this for now until we change int64 to uint64 in applicable sources. In any case this doesn't have any affect on destinations such as postgres
1 parent 7eaf327 commit 4df3b46

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

scalar/int.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,8 @@ func (s *Int) Set(val any) error {
117117
}
118118
s.Value = v
119119
case uint64:
120-
if value > math.MaxInt64 {
121-
return &ValidationError{Type: s.DataType(), Msg: "uint64 greater than MaxInt64", Value: value}
122-
}
123120
return s.Set(int64(value))
124121
case uint:
125-
if value > math.MaxInt64 {
126-
return &ValidationError{Type: s.DataType(), Msg: "uint greater than MaxInt64", Value: value}
127-
}
128122
return s.Set(int64(value))
129123
case float32:
130124
return s.Set(int64(value))

0 commit comments

Comments
 (0)