[open-ils-commits] r14363 - tags/rel_1_6_0_0/Open-ILS/src/sql/Pg (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Oct 12 12:17:05 EDT 2009
Author: miker
Date: 2009-10-12 12:17:02 -0400 (Mon, 12 Oct 2009)
New Revision: 14363
Modified:
tags/rel_1_6_0_0/Open-ILS/src/sql/Pg/1.4.0.5-1.6.0.0-upgrade-db.sql
Log:
do not use NEW in an ON DELETE trigger, use OLD
Modified: tags/rel_1_6_0_0/Open-ILS/src/sql/Pg/1.4.0.5-1.6.0.0-upgrade-db.sql
===================================================================
--- tags/rel_1_6_0_0/Open-ILS/src/sql/Pg/1.4.0.5-1.6.0.0-upgrade-db.sql 2009-10-12 15:55:31 UTC (rev 14362)
+++ tags/rel_1_6_0_0/Open-ILS/src/sql/Pg/1.4.0.5-1.6.0.0-upgrade-db.sql 2009-10-12 16:17:02 UTC (rev 14363)
@@ -941,7 +941,7 @@
SET last_billing_ts = prev_billing.billing_ts,
last_billing_note = prev_billing.note,
last_billing_type = prev_billing.billing_type
- WHERE id = NEW.xact;
+ WHERE id = OLD.xact;
END IF;
IF NOT OLD.voided THEN
More information about the open-ils-commits
mailing list