asset.merge_record_assets() needs auth_link declaration (was in upgrade script)
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 15 Jul 2010 10:24:44 +0000 (10:24 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 15 Jul 2010 10:24:44 +0000 (10:24 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16937 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/sql/Pg/999.functions.global.sql

index fcf0d5f..2f82968 100644 (file)
@@ -967,12 +967,13 @@ $$;
 
 CREATE OR REPLACE FUNCTION asset.merge_record_assets( target_record BIGINT, source_record BIGINT ) RETURNS INT AS $func$
 DECLARE
-       moved_objects INT := 0;
-       source_cn     asset.call_number%ROWTYPE;
-       target_cn     asset.call_number%ROWTYPE;
-       metarec       metabib.metarecord%ROWTYPE;
-       hold          action.hold_request%ROWTYPE;
-       ser_rec       serial.record_entry%ROWTYPE;
+    moved_objects INT := 0;
+    source_cn     asset.call_number%ROWTYPE;
+    target_cn     asset.call_number%ROWTYPE;
+    metarec       metabib.metarecord%ROWTYPE;
+    hold          action.hold_request%ROWTYPE;
+    ser_rec       serial.record_entry%ROWTYPE;
+    auth_link     authority.bib_linking%ROWTYPE;
     uri_count     INT := 0;
     counter       INT := 0;
     uri_datafield TEXT;