diff --git a/changelog/18729.txt b/changelog/18729.txt new file mode 100644 index 000000000..975d0274b --- /dev/null +++ b/changelog/18729.txt @@ -0,0 +1,3 @@ +```release-note:bug +sdk/backend: prevent panic when computing the zero value for a `TypeInt64` schema field. +``` \ No newline at end of file diff --git a/sdk/framework/backend.go b/sdk/framework/backend.go index 67ad2a8ed..3a6b0d804 100644 --- a/sdk/framework/backend.go +++ b/sdk/framework/backend.go @@ -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: