[open-ils-commits] r14806 - tags/rel_1_6_0_0/Open-ILS/src/sql/Pg (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Nov 6 09:58:55 EST 2009
Author: miker
Date: 2009-11-06 09:58:53 -0500 (Fri, 06 Nov 2009)
New Revision: 14806
Modified:
tags/rel_1_6_0_0/Open-ILS/src/sql/Pg/090.schema.action.sql
tags/rel_1_6_0_0/Open-ILS/src/sql/Pg/1.4.0.5-1.6.0.0-upgrade-db.sql
Log:
backporting r14803: thinko in push-due_date trigger function
Modified: tags/rel_1_6_0_0/Open-ILS/src/sql/Pg/090.schema.action.sql
===================================================================
--- tags/rel_1_6_0_0/Open-ILS/src/sql/Pg/090.schema.action.sql 2009-11-06 14:57:59 UTC (rev 14805)
+++ tags/rel_1_6_0_0/Open-ILS/src/sql/Pg/090.schema.action.sql 2009-11-06 14:58:53 UTC (rev 14806)
@@ -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;
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-11-06 14:57:59 UTC (rev 14805)
+++ tags/rel_1_6_0_0/Open-ILS/src/sql/Pg/1.4.0.5-1.6.0.0-upgrade-db.sql 2009-11-06 14:58:53 UTC (rev 14806)
@@ -1102,7 +1102,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