[open-ils-commits] [GIT] Evergreen ILS branch master updated. 19f438573115de734a21588071a65c329d621e81

Evergreen Git git at git.evergreen-ils.org
Fri Mar 7 08:51:02 EST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  19f438573115de734a21588071a65c329d621e81 (commit)
      from  5d62e7d5f1c9ed0e82e158bd4027e5b7599605c3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 19f438573115de734a21588071a65c329d621e81
Author: Ben Shum <bshum at biblio.org>
Date:   Fri Mar 7 08:49:16 2014 -0500

    LP1288938 - final adjustments for 0870 upgrade script
    
    These were missed from the original and resulted in the fix not being complete.
    
    Signed-off-by: Ben Shum <bshum at biblio.org>

diff --git a/Open-ILS/src/sql/Pg/upgrade/0870.function.located_uris_act_as_copies-fix.sql b/Open-ILS/src/sql/Pg/upgrade/0870.function.located_uris_act_as_copies-fix.sql
index 3735aa1..25e55c7 100644
--- a/Open-ILS/src/sql/Pg/upgrade/0870.function.located_uris_act_as_copies-fix.sql
+++ b/Open-ILS/src/sql/Pg/upgrade/0870.function.located_uris_act_as_copies-fix.sql
@@ -20,7 +20,7 @@ BEGIN;
 SELECT evergreen.upgrade_deps_block_check('0870', :eg_version);
 
 CREATE OR REPLACE FUNCTION evergreen.located_uris (
-    bibid BIGINT,
+    bibid BIGINT[],
     ouid INT,
     pref_lib INT DEFAULT NULL
 ) RETURNS TABLE (id BIGINT, name TEXT, label_sortkey TEXT, rank INT) AS $$
@@ -33,7 +33,7 @@ CREATE OR REPLACE FUNCTION evergreen.located_uris (
            LEFT JOIN actor.org_unit_ancestors( COALESCE($3, $2) ) aou ON (acn.owning_lib = aou.id)
            LEFT JOIN actor.org_unit_descendants( COALESCE($3, $2) ) aoud ON (acn.owning_lib = aoud.id),
            all_orgs
-      WHERE acn.record = $1
+      WHERE acn.record = ANY ($1)
           AND acn.deleted IS FALSE
           AND auri.active IS TRUE
           AND ((NOT all_orgs.flag AND aou.id IS NOT NULL) OR (all_orgs.flag AND COALESCE(aou.id,aoud.id) IS NOT NULL))
@@ -45,7 +45,7 @@ CREATE OR REPLACE FUNCTION evergreen.located_uris (
            LEFT JOIN actor.org_unit_ancestors( $2 ) aou ON (acn.owning_lib = aou.id)
            LEFT JOIN actor.org_unit_descendants( $2 ) aoud ON (acn.owning_lib = aoud.id),
            all_orgs
-      WHERE acn.record = $1
+      WHERE acn.record = ANY ($1)
           AND acn.deleted IS FALSE
           AND auri.active IS TRUE
           AND ((NOT all_orgs.flag AND aou.id IS NOT NULL) OR (all_orgs.flag AND COALESCE(aou.id,aoud.id) IS NOT NULL)))x

-----------------------------------------------------------------------

Summary of changes:
 ...870.function.located_uris_act_as_copies-fix.sql |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list