use PL/PerlU rather than PL/Perl
authorGalen Charlton <gmc@esilibrary.com>
Tue, 24 Jul 2012 19:31:08 +0000 (15:31 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 24 Jul 2012 19:31:08 +0000 (15:31 -0400)
The trusted version of PL/Perl is not enabled by
default if you follow the installation instructions
for recent versions of Evergreen.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>

sql/base/base.sql

index deeaa3c..35831e0 100644 (file)
@@ -622,7 +622,7 @@ CREATE OR REPLACE FUNCTION migration_tools.expand_barcode (TEXT, TEXT, INTEGER,
     return $barcode if (length($prefix) + length($new_barcode) + length($suffix)) > $maxlen;
 
     return "$prefix$new_barcode$suffix";
-$$ LANGUAGE PLPERL STABLE;
+$$ LANGUAGE PLPERLU STABLE;
 
 CREATE OR REPLACE FUNCTION migration_tools.attempt_cast (TEXT,TEXT,TEXT) RETURNS RECORD AS $$
     DECLARE
@@ -729,7 +729,7 @@ CREATE OR REPLACE FUNCTION migration_tools.add_codabar_checkdigit (TEXT) RETURNS
     my $remainder = $total % 10;
     my $checkdigit = ($remainder == 0) ? $remainder : 10 - $remainder;
     return $barcode . $checkdigit; 
-$$ LANGUAGE PLPERL STRICT STABLE;
+$$ LANGUAGE PLPERLU STRICT STABLE;
 
 CREATE OR REPLACE FUNCTION migration_tools.attempt_phone (TEXT,TEXT) RETURNS TEXT AS $$
   DECLARE