Ensure all byte slices are converted to strings
This commit is contained in:
parent
c91164bc93
commit
44d2fc129f
1 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,8 @@ func (e *executor) fetch(ctx context.Context, val interface{}, doc *data.Doc) (o
|
||||||
return nil, nil
|
return nil, nil
|
||||||
case *sql.Value:
|
case *sql.Value:
|
||||||
return val.VA, nil
|
return val.VA, nil
|
||||||
|
case []byte:
|
||||||
|
return string(val), nil
|
||||||
case int:
|
case int:
|
||||||
return float64(val), nil
|
return float64(val), nil
|
||||||
case int8:
|
case int8:
|
||||||
|
|
Loading…
Reference in a new issue