From: Dan Scott Date: Fri, 17 Jan 2014 01:59:13 +0000 (-0500) Subject: Keep dropping and creating array_accum() X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e6eb17aa52e6dab2bbbb12674a717fcdf01023d4;p=evergreen%2Fpines.git Keep dropping and creating array_accum() We want to keep array_accum() around for now to support any custom SQL that sites might have generated. Plus, we don't want it to show up in our search path ahead of the native array_agg()! We can always rebase this as a fix into the previous commit to squash history a bit. "Nope, that never happened!" Signed-off-by: Dan Scott Signed-off-by: Ben Shum --- diff --git a/Open-ILS/src/sql/Pg/002.functions.aggregate.sql b/Open-ILS/src/sql/Pg/002.functions.aggregate.sql index 57f0ce570f..cb42cd7b06 100644 --- a/Open-ILS/src/sql/Pg/002.functions.aggregate.sql +++ b/Open-ILS/src/sql/Pg/002.functions.aggregate.sql @@ -17,12 +17,12 @@ BEGIN; -DROP AGGREGATE IF EXISTS array_agg(anyelement) CASCADE; +DROP AGGREGATE IF EXISTS array_accum(anyelement) CASCADE; DROP AGGREGATE IF EXISTS public.first(anyelement) CASCADE; DROP AGGREGATE IF EXISTS public.last(anyelement) CASCADE; DROP AGGREGATE IF EXISTS public.agg_text(text) CASCADE; -CREATE AGGREGATE array_agg ( +CREATE AGGREGATE array_accum ( sfunc = array_append, basetype = anyelement, stype = anyarray,