wip
This commit is contained in:
@@ -106,8 +106,7 @@ func encodeBasic() EncodeFunc {
|
||||
if !col.Nullable {
|
||||
// we need to set the zero value here since the column
|
||||
// is not marked as nullable
|
||||
//return reflect.New(valType).Elem().Interface(), true, nil
|
||||
panic("nil pointer for not-null field")
|
||||
return reflect.New(valType).Elem().Interface(), true, nil
|
||||
}
|
||||
|
||||
return nil, true, nil
|
||||
|
||||
@@ -38,10 +38,10 @@ type (
|
||||
Selects []Select
|
||||
|
||||
QueryRequestPayload struct {
|
||||
Select Selects `json:"select"`
|
||||
Query Query `json:"query"`
|
||||
OrderBy []OrderBy `json:"orderBy"`
|
||||
GroupBy []string `json:"groupBy"`
|
||||
Select Selects `json:"select"`
|
||||
Query Query `json:"query"`
|
||||
OrderBy OrderBys `json:"orderBy"`
|
||||
GroupBy []string `json:"groupBy"`
|
||||
|
||||
selectedFields []string
|
||||
whitelistedFields []string
|
||||
|
||||
Reference in New Issue
Block a user