LP#1845260: fix error in vandelay.auto_overlay_org_unit_copies db function
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Mon, 23 Sep 2019 23:15:14 +0000 (16:15 -0700)
committerGalen Charlton <gmc@equinoxinitiative.org>
Tue, 1 Oct 2019 20:49:50 +0000 (16:49 -0400)
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/sql/Pg/012.schema.vandelay.sql
Open-ILS/src/sql/Pg/upgrade/1182.schema.vandelay.auto_overlay_org_unit_copies.sql

index 732be40..64fd6cd 100644 (file)
@@ -1885,7 +1885,7 @@ BEGIN
     -- These are our initial scope_orgs.
     SELECT ARRAY_AGG(DISTINCT owning_lib) INTO scope_orgs
         FROM vandelay.import_item
-        WHERE queued_record = import_id;
+        WHERE record = import_id;
 
     WHILE CARDINALITY(scope_orgs) > 0 LOOP
         FOR scope_org IN SELECT * FROM UNNEST(scope_orgs) LOOP
index 13816a3..70a4b3e 100644 (file)
@@ -31,7 +31,7 @@ BEGIN
     -- These are our initial scope_orgs.
     SELECT ARRAY_AGG(DISTINCT owning_lib) INTO scope_orgs
         FROM vandelay.import_item
-        WHERE queued_record = import_id;
+        WHERE record = import_id;
 
     WHILE CARDINALITY(scope_orgs) > 0 LOOP
         FOR scope_org IN SELECT * FROM UNNEST(scope_orgs) LOOP