[open-ils-commits] r14787 - tags/rel_1_6_0_0/Open-ILS/src/sql/Pg (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Nov 5 13:32:30 EST 2009
Author: miker
Date: 2009-11-05 13:32:26 -0500 (Thu, 05 Nov 2009)
New Revision: 14787
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:
Typo
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-05 18:28:15 UTC (rev 14786)
+++ tags/rel_1_6_0_0/Open-ILS/src/sql/Pg/090.schema.action.sql 2009-11-05 18:32:26 UTC (rev 14787)
@@ -133,7 +133,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
- NEW.due_date = (NEW.due_date::DATE + '1 day'::INTERVAL - '1 second'::INTERVAL)TIMESTAMPTZ;
+ NEW.due_date = (NEW.due_date::DATE + '1 day'::INTERVAL - '1 second'::INTERVAL)::TIMESTAMPTZ;
END IF;
RETURN NEW;
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-05 18:28:15 UTC (rev 14786)
+++ tags/rel_1_6_0_0/Open-ILS/src/sql/Pg/1.4.0.5-1.6.0.0-upgrade-db.sql 2009-11-05 18:32:26 UTC (rev 14787)
@@ -1103,7 +1103,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
- NEW.due_date = (NEW.due_date::DATE + '1 day'::INTERVAL - '1 second'::INTERVAL)TIMESTAMPTZ;
+ NEW.due_date = (NEW.due_date::DATE + '1 day'::INTERVAL - '1 second'::INTERVAL)::TIMESTAMPTZ;
END IF;
RETURN NEW;
More information about the open-ils-commits
mailing list