From: berick Date: Wed, 4 May 2011 14:45:40 +0000 (-0400) Subject: don't match on deleted bib records X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b89fafd6a0baa8168308e7e05e6d47ee1540f658;p=evergreen%2Fequinox.git don't match on deleted bib records --- diff --git a/Open-ILS/src/sql/Pg/012.schema.vandelay.sql b/Open-ILS/src/sql/Pg/012.schema.vandelay.sql index ce1852751d..9d14678469 100644 --- a/Open-ILS/src/sql/Pg/012.schema.vandelay.sql +++ b/Open-ILS/src/sql/Pg/012.schema.vandelay.sql @@ -539,7 +539,7 @@ BEGIN FROM _vandelay_tmp_jrows; -- add those joins and the where clause to our query. - query_ := query_ || joins || E'\n' || 'WHERE ' || wq; + query_ := query_ || joins || E'\n' || 'WHERE ' || wq || ' AND not bre.deleted'; -- this will return rows of record,quality FOR rec IN EXECUTE query_ USING tags_rstore, svf_rstore LOOP