mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 18:17:55 +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 ""
|
return ""
|
||||||
case TypeInt:
|
case TypeInt:
|
||||||
return 0
|
return 0
|
||||||
|
case TypeInt64:
|
||||||
|
return int64(0)
|
||||||
case TypeBool:
|
case TypeBool:
|
||||||
return false
|
return false
|
||||||
case TypeMap:
|
case TypeMap:
|
||||||
|
|||||||
Reference in New Issue
Block a user