From 44d2fc129f7efa609df6300fdf74ad0156bb1815 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Tue, 21 Aug 2018 11:39:12 +0100 Subject: [PATCH] Ensure all byte slices are converted to strings --- db/fetch.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/fetch.go b/db/fetch.go index 301bef78..feddde18 100644 --- a/db/fetch.go +++ b/db/fetch.go @@ -44,6 +44,8 @@ func (e *executor) fetch(ctx context.Context, val interface{}, doc *data.Doc) (o return nil, nil case *sql.Value: return val.VA, nil + case []byte: + return string(val), nil case int: return float64(val), nil case int8: