Navigation Menu

Skip to content

Commit

Permalink
Update functions.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
garysieling committed Sep 22, 2015
1 parent a62b15e commit 466983e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions functions.sql
Expand Up @@ -6,6 +6,7 @@ CREATE AGGREGATE flatMap (anyarray)
);

-- http://stackoverflow.com/questions/3994556/eliminate-duplicate-array-values-in-postgres
-- can't be called 'distinct' like scala, because that's a SQL keyword
CREATE OR REPLACE FUNCTION uniq (ANYARRAY) RETURNS ANYARRAY
LANGUAGE SQL
AS $body$
Expand Down

0 comments on commit 466983e

Please sign in to comment.