[open-ils-commits] r14804 - branches/rel_1_6/Open-ILS/src/sql/Pg (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Nov 6 09:57:45 EST 2009
Author: miker
Date: 2009-11-06 09:57:43 -0500 (Fri, 06 Nov 2009)
New Revision: 14804
Modified:
branches/rel_1_6/Open-ILS/src/sql/Pg/090.schema.action.sql
Log:
backporting r14803: thinko in push-due_date trigger function
Modified: branches/rel_1_6/Open-ILS/src/sql/Pg/090.schema.action.sql
===================================================================
--- branches/rel_1_6/Open-ILS/src/sql/Pg/090.schema.action.sql 2009-11-06 14:56:50 UTC (rev 14803)
+++ branches/rel_1_6/Open-ILS/src/sql/Pg/090.schema.action.sql 2009-11-06 14:57:43 UTC (rev 14804)
@@ -132,7 +132,7 @@
CREATE OR REPLACE FUNCTION action.push_circ_due_time () RETURNS TRIGGER AS $$
BEGIN
- IF (EXTRACT(EPOCH FROM NEW.circ_duration)::INT % EXTRACT(EPOCH FROM '1 day'::INTERVAL)::INT) = 0 THEN
+ IF (EXTRACT(EPOCH FROM NEW.duration)::INT % EXTRACT(EPOCH FROM '1 day'::INTERVAL)::INT) = 0 THEN
NEW.due_date = (NEW.due_date::DATE + '1 day'::INTERVAL - '1 second'::INTERVAL)::TIMESTAMPTZ;
END IF;
More information about the open-ils-commits
mailing list