From: miker Date: Fri, 1 May 2009 18:50:49 +0000 (+0000) Subject: disambiguate the owning_lib field X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=29b7df6c2f9437f432812a82d806c5e7565310eb;p=evergreen%2Ftadl.git disambiguate the owning_lib field git-svn-id: svn://svn.open-ils.org/ILS/trunk@13032 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/012.schema.vandelay.sql b/Open-ILS/src/sql/Pg/012.schema.vandelay.sql index b9503e44a6..47f5545422 100644 --- a/Open-ILS/src/sql/Pg/012.schema.vandelay.sql +++ b/Open-ILS/src/sql/Pg/012.schema.vandelay.sql @@ -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')