This commit is contained in:
Patrick Pacher
2022-04-26 15:03:04 +02:00
parent d098f1c137
commit 0d2ec9df75
2 changed files with 5 additions and 6 deletions

View File

@@ -106,8 +106,7 @@ func encodeBasic() EncodeFunc {
if !col.Nullable { if !col.Nullable {
// we need to set the zero value here since the column // we need to set the zero value here since the column
// is not marked as nullable // is not marked as nullable
//return reflect.New(valType).Elem().Interface(), true, nil return reflect.New(valType).Elem().Interface(), true, nil
panic("nil pointer for not-null field")
} }
return nil, true, nil return nil, true, nil

View File

@@ -38,10 +38,10 @@ type (
Selects []Select Selects []Select
QueryRequestPayload struct { QueryRequestPayload struct {
Select Selects `json:"select"` Select Selects `json:"select"`
Query Query `json:"query"` Query Query `json:"query"`
OrderBy []OrderBy `json:"orderBy"` OrderBy OrderBys `json:"orderBy"`
GroupBy []string `json:"groupBy"` GroupBy []string `json:"groupBy"`
selectedFields []string selectedFields []string
whitelistedFields []string whitelistedFields []string