From 7d5594bb29314b4eed5902302514fa73e1d9b445 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Tue, 15 Aug 2023 14:38:30 +0200 Subject: [PATCH] fix(output): ID column could not be selected (#520) Because we changed the type of ID fields but did not update the code that reflects on the structs to also allow int64 fields. --- internal/cmd/output/output.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/cmd/output/output.go b/internal/cmd/output/output.go index 4046125f..2a31adcb 100644 --- a/internal/cmd/output/output.go +++ b/internal/cmd/output/output.go @@ -206,7 +206,8 @@ func (o *Table) AddAllowedFields(obj interface{}) *Table { k != reflect.Float32 && k != reflect.Float64 && k != reflect.String && - k != reflect.Int { + k != reflect.Int && + k != reflect.Int64 { // only allow simple values // complex values need to be mapped via a FieldFn continue