[open-ils-commits] r14364 - 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:28 EDT 2009
Author: miker
Date: 2009-10-12 12:17:25 -0400 (Mon, 12 Oct 2009)
New Revision: 14364
Modified:
tags/rel_1_6_0_0/Open-ILS/src/sql/Pg/080.schema.money.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/080.schema.money.sql
===================================================================
--- tags/rel_1_6_0_0/Open-ILS/src/sql/Pg/080.schema.money.sql 2009-10-12 16:17:02 UTC (rev 14363)
+++ tags/rel_1_6_0_0/Open-ILS/src/sql/Pg/080.schema.money.sql 2009-10-12 16:17:25 UTC (rev 14364)
@@ -370,7 +370,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