the SQL distinct() function always returns a slice

This commit is contained in:
Tobie Morgan Hitchcock 2018-04-29 01:10:39 +01:00
parent f5a0739985
commit 0c5af3ec29

View file

@ -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) d := make([]interface{}, 0)
c := make(map[interface{}]bool) c := make(map[interface{}]bool)