Skip to content

Commit e3a33c3

Browse files
committed
Fix compilation issue
1 parent 3b6494e commit e3a33c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/timetype.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ func (t timespanType) ConvertToTimespan(v interface{}) (Timespan, error) {
165165
}
166166
case uint64:
167167
if value > math.MaxInt64 {
168-
return Timespan{}, fmt.Errorf("value %d exceeds int64 maximum limit", value)
168+
return Timespan(0), fmt.Errorf("value %d exceeds int64 maximum limit", value)
169169
}
170170
// Explicit bounds check added to prevent overflow during conversion to int64.
171171
if value > math.MaxInt64 {
172-
return Timespan{}, fmt.Errorf("value %d exceeds int64 maximum limit", value)
172+
return Timespan(0), fmt.Errorf("value %d exceeds int64 maximum limit", value)
173173
}
174174
return t.ConvertToTimespan(int64(value))
175175
case float32:

0 commit comments

Comments
 (0)