mike, check me on this one... fixing what looks like a copy/paste error. bib_record_...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 2 Sep 2008 19:48:05 +0000 (19:48 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 2 Sep 2008 19:48:05 +0000 (19:48 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10509 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index c481a87..a65e635 100644 (file)
@@ -543,7 +543,7 @@ $func$ LANGUAGE PLPGSQL;
 
 CREATE OR REPLACE FUNCTION vandelay.cleanup_bib_marc ( ) RETURNS TRIGGER AS $$
 BEGIN
-    DELETE FROM vandelay.queued_bib_record_attr WHERE lineitem = OLD.id;
+    DELETE FROM vandelay.queued_bib_record_attr WHERE record = OLD.id;
     IF TG_OP = 'UPDATE' THEN
         RETURN NEW;
     END IF;