Update netquery query handler to only use strftime when the given value is a number kind

This commit is contained in:
Patrick Pacher
2023-09-07 11:58:07 +02:00
parent d96f841bef
commit 4cd6823066
4 changed files with 25 additions and 7 deletions

View File

@@ -176,7 +176,7 @@ func getColumnDef(fieldType reflect.StructField) (*ColumnDef, error) {
}
def.GoType = ft
kind := normalizeKind(ft.Kind())
kind := NormalizeKind(ft.Kind())
switch kind { //nolint:exhaustive
case reflect.Int, reflect.Uint: