From: phasefx Date: Tue, 15 Mar 2011 21:05:49 +0000 (+0000) Subject: With some hints from eeevil, tweaked 002.functions.aggregate.sql to work after some... X-Git-Tag: kcls-grey-screen-prod2~3^2~8 X-Git-Url: http://git.equinoxoli.org/?p=evergreen-equinox.git;a=commitdiff_plain;h=78e8e4a749d3c644838e68593846185628d974e2 With some hints from eeevil, tweaked 002.functions.aggregate.sql to work after some search_path mangling. Haven't smoketested yet, just got past the eg_db_config --create-schema bit with this. git-svn-id: svn://svn.open-ils.org/ILS/trunk@19756 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/002.functions.aggregate.sql b/Open-ILS/src/sql/Pg/002.functions.aggregate.sql index fb0c311..26d908f 100644 --- a/Open-ILS/src/sql/Pg/002.functions.aggregate.sql +++ b/Open-ILS/src/sql/Pg/002.functions.aggregate.sql @@ -66,7 +66,7 @@ CREATE AGGREGATE public.agg_text ( stype = text ); -CREATE OR REPLACE FUNCTION public.tsvector_concat ( tsvector, tsvector ) RETURNS tsvector AS $$ +CREATE OR REPLACE FUNCTION tsvector_concat ( tsvector, tsvector ) RETURNS pg_catalog.tsvector AS $$ SELECT CASE WHEN $1 IS NULL THEN $2 @@ -77,9 +77,9 @@ SELECT $$ LANGUAGE SQL STABLE; CREATE AGGREGATE public.agg_tsvector ( - sfunc = public.tsvector_concat, - basetype = tsvector, - stype = tsvector + sfunc = tsvector_concat, + basetype = pg_catalog.tsvector, + stype = pg_catalog.tsvector ); CREATE OR REPLACE FUNCTION public.explode_array(anyarray) RETURNS SETOF anyelement AS $BODY$