From 0c5af3ec29fdd93e9c201c998fde272b24c3da29 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Sun, 29 Apr 2018 01:10:39 +0100 Subject: [PATCH] the SQL distinct() function always returns a slice --- util/fncs/sets.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/fncs/sets.go b/util/fncs/sets.go index 0e6089c8..11799431 100644 --- a/util/fncs/sets.go +++ b/util/fncs/sets.go @@ -40,7 +40,7 @@ func difference(ctx context.Context, args ...interface{}) ([]interface{}, error) } -func distinct(ctx context.Context, args ...interface{}) (interface{}, error) { +func distinct(ctx context.Context, args ...interface{}) ([]interface{}, error) { d := make([]interface{}, 0) c := make(map[interface{}]bool)