bug: correct sdk handling of the zero int64 value (#18729)
* bug: correct handling of the zero int64 value * Update changelog/18729.txt --------- Co-authored-by: valli_0x <personallune@mail.ru> Co-authored-by: Tom Proctor <tomhjp@users.noreply.github.com>
This commit is contained in:
parent
d16f0ef9d2
commit
8e9680223d
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
sdk/backend: prevent panic when computing the zero value for a `TypeInt64` schema field.
|
||||
```
|
|
@ -752,6 +752,8 @@ func (t FieldType) Zero() interface{} {
|
|||
return ""
|
||||
case TypeInt:
|
||||
return 0
|
||||
case TypeInt64:
|
||||
return int64(0)
|
||||
case TypeBool:
|
||||
return false
|
||||
case TypeMap:
|
||||
|
|
Loading…
Reference in New Issue