[open-ils-commits] r9934 - trunk/Open-ILS/src/sql/Pg

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jun 26 08:47:10 EDT 2008


Author: miker
Date: 2008-06-26 08:47:09 -0400 (Thu, 26 Jun 2008)
New Revision: 9934

Modified:
   trunk/Open-ILS/src/sql/Pg/020.schema.functions.sql
Log:
array_accum defined in the new aggregate function file

Modified: trunk/Open-ILS/src/sql/Pg/020.schema.functions.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/020.schema.functions.sql	2008-06-26 00:58:58 UTC (rev 9933)
+++ trunk/Open-ILS/src/sql/Pg/020.schema.functions.sql	2008-06-26 12:47:09 UTC (rev 9934)
@@ -112,7 +112,7 @@
 CREATE OR REPLACE FUNCTION public.call_number_dewey( TEXT ) RETURNS TEXT AS $$
 	my $txt = shift;
 	$txt =~ s/^\s+//o;
-	$txt =~ s/[\[\]\{\}\(\)`'"#<>\*\?\-\+\$\\]+//o;
+	$txt =~ s/[\[\]\{\}\(\)`'"#<>\*\?\-\+\$\\]+//og;
 	$txt =~ s/\s+$//o;
 	if ($txt =~ /(\d{3}(?:\.\d+)?)/o) {
 		return $1;
@@ -206,10 +206,4 @@
 	) z;
 $$ LANGUAGE SQL STABLE;
 
-CREATE AGGREGATE array_accum (
-	sfunc = array_append,
-	basetype = anyelement,
-	stype = anyarray,
-	initcond = '{}'
-);
 



More information about the open-ils-commits mailing list