[open-ils-commits] r14366 - branches/rel_1_6/Open-ILS/src/sql/Pg (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Oct 12 12:20:59 EDT 2009


Author: miker
Date: 2009-10-12 12:20:56 -0400 (Mon, 12 Oct 2009)
New Revision: 14366

Modified:
   branches/rel_1_6/Open-ILS/src/sql/Pg/080.schema.money.sql
Log:
forward porting 14363 and 14364: do not use NEW in an ON DELETE trigger, use OLD

Modified: branches/rel_1_6/Open-ILS/src/sql/Pg/080.schema.money.sql
===================================================================
--- branches/rel_1_6/Open-ILS/src/sql/Pg/080.schema.money.sql	2009-10-12 16:20:20 UTC (rev 14365)
+++ branches/rel_1_6/Open-ILS/src/sql/Pg/080.schema.money.sql	2009-10-12 16:20:56 UTC (rev 14366)
@@ -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