[open-ils-commits] r16835 - trunk/Open-ILS/src/sql/Pg (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Jun 30 14:14:27 EDT 2010


Author: dbs
Date: 2010-06-30 14:14:23 -0400 (Wed, 30 Jun 2010)
New Revision: 16835

Modified:
   trunk/Open-ILS/src/sql/Pg/002.functions.aggregate.sql
   trunk/Open-ILS/src/sql/Pg/100.circ_matrix.sql
Log:
explode_array() is needed by 030.schema.metabib.sql now; create it early so that database schema creation doesn't fail


Modified: trunk/Open-ILS/src/sql/Pg/002.functions.aggregate.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.functions.aggregate.sql	2010-06-30 13:32:28 UTC (rev 16834)
+++ trunk/Open-ILS/src/sql/Pg/002.functions.aggregate.sql	2010-06-30 18:14:23 UTC (rev 16835)
@@ -84,4 +84,9 @@
 	stype	 = tsvector
 );
 
+CREATE OR REPLACE FUNCTION public.explode_array(anyarray) RETURNS SETOF anyelement AS $BODY$
+    SELECT ($1)[s] FROM generate_series(1, array_upper($1, 1)) AS s;
+$BODY$
+LANGUAGE 'sql' IMMUTABLE;
+
 COMMIT;

Modified: trunk/Open-ILS/src/sql/Pg/100.circ_matrix.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/100.circ_matrix.sql	2010-06-30 13:32:28 UTC (rev 16834)
+++ trunk/Open-ILS/src/sql/Pg/100.circ_matrix.sql	2010-06-30 18:14:23 UTC (rev 16835)
@@ -1,11 +1,5 @@
 
 BEGIN;
-
-CREATE OR REPLACE FUNCTION explode_array(anyarray) RETURNS SETOF anyelement AS $BODY$
-    SELECT ($1)[s] FROM generate_series(1, array_upper($1, 1)) AS s;
-$BODY$
-LANGUAGE 'sql' IMMUTABLE;
-
 -- NOTE: current config.item_type should get sip2_media_type and magnetic_media columns
 
 -- New table needed to handle circ modifiers inside the DB.  Will still require



More information about the open-ils-commits mailing list