mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
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:
3
changelog/18729.txt
Normal file
3
changelog/18729.txt
Normal file
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user