[open-ils-commits] r17206 - in trunk/Open-ILS/src/sql/Pg: . upgrade (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Aug 13 00:07:51 EDT 2010


Author: miker
Date: 2010-08-13 00:07:48 -0400 (Fri, 13 Aug 2010)
New Revision: 17206

Modified:
   trunk/Open-ILS/src/sql/Pg/030.schema.metabib.sql
   trunk/Open-ILS/src/sql/Pg/upgrade/0370.schema.protect-authority-linking.sql
Log:
fix cut-n-paste-o

Modified: trunk/Open-ILS/src/sql/Pg/030.schema.metabib.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/030.schema.metabib.sql	2010-08-13 03:49:35 UTC (rev 17205)
+++ trunk/Open-ILS/src/sql/Pg/030.schema.metabib.sql	2010-08-13 04:07:48 UTC (rev 17206)
@@ -900,9 +900,9 @@
         SELECT  y.bib,
                 y.authority
           FROM (    SELECT  DISTINCT $1 AS bib,
-                            BTRIM(remove_paren_substring(x))::BIGINT AS authority
+                            BTRIM(remove_paren_substring(txt))::BIGINT AS authority
                       FROM  explode_array(oils_xpath('//*[@code="0"]/text()',$2)) x(txt)
-                      WHERE BTRIM(remove_paren_substring(x)) ~ $re$^\d+$$re$
+                      WHERE BTRIM(remove_paren_substring(txt)) ~ $re$^\d+$$re$
                 ) y JOIN authority.record_entry r ON r.id = y.authority;
     SELECT $1;
 $func$ LANGUAGE SQL;

Modified: trunk/Open-ILS/src/sql/Pg/upgrade/0370.schema.protect-authority-linking.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0370.schema.protect-authority-linking.sql	2010-08-13 03:49:35 UTC (rev 17205)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0370.schema.protect-authority-linking.sql	2010-08-13 04:07:48 UTC (rev 17206)
@@ -8,9 +8,9 @@
         SELECT  y.bib,
                 y.authority
           FROM (    SELECT  DISTINCT $1 AS bib,
-                            BTRIM(remove_paren_substring(x))::BIGINT AS authority
+                            BTRIM(remove_paren_substring(txt))::BIGINT AS authority
                       FROM  explode_array(oils_xpath('//*[@code="0"]/text()',$2)) x(txt)
-                      WHERE BTRIM(remove_paren_substring(x)) ~ $re$^\d+$$re$
+                      WHERE BTRIM(remove_paren_substring(txt)) ~ $re$^\d+$$re$
                 ) y JOIN authority.record_entry r ON r.id = y.authority;
     SELECT $1;
 $func$ LANGUAGE SQL;



More information about the open-ils-commits mailing list