disambiguate the owning_lib field
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 1 May 2009 18:50:49 +0000 (18:50 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 1 May 2009 18:50:49 +0000 (18:50 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13032 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/sql/Pg/012.schema.vandelay.sql

index b9503e4..47f5545 100644 (file)
@@ -366,7 +366,7 @@ BEGIN
             SELECT  id INTO attr_set.location
               FROM  asset.copy_location
               WHERE LOWER(name) = LOWER(tmp_attr_set.cl)
-                    AND owning_lib = COALESCE(attr_set.owning_lib, attr_set.circ_lib); -- INT
+                    AND asset.copy_location.owning_lib = COALESCE(attr_set.owning_lib, attr_set.circ_lib); -- INT
     
             attr_set.circulate      :=
                 LOWER( SUBSTRING( tmp_attr_set.circ, 1, 1)) IN ('t','y','1')