[open-ils-commits] r20126 - branches/rel_2_1/Open-ILS/src/sql/Pg (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat Apr 16 01:40:30 EDT 2011
Author: phasefx
Date: 2011-04-16 01:40:26 -0400 (Sat, 16 Apr 2011)
New Revision: 20126
Modified:
branches/rel_2_1/Open-ILS/src/sql/Pg/002.functions.aggregate.sql
Log:
some tweaks to tsvector and friends to get the db schema to build cleanly
Modified: branches/rel_2_1/Open-ILS/src/sql/Pg/002.functions.aggregate.sql
===================================================================
--- branches/rel_2_1/Open-ILS/src/sql/Pg/002.functions.aggregate.sql 2011-04-16 03:28:36 UTC (rev 20125)
+++ branches/rel_2_1/Open-ILS/src/sql/Pg/002.functions.aggregate.sql 2011-04-16 05:40:26 UTC (rev 20126)
@@ -21,7 +21,7 @@
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;
-DROP AGGREGATE IF EXISTS public.agg_tsvector(tsvector) CASCADE;
+DROP AGGREGATE IF EXISTS public.agg_tsvector(pg_catalog.tsvector) CASCADE;
CREATE AGGREGATE array_accum (
sfunc = array_append,
@@ -66,7 +66,7 @@
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 @@
$$ 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$
More information about the open-ils-commits
mailing list