[open-ils-commits] r13898 - branches/rel_1_6/Open-ILS/src/sql/Pg (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Aug 20 11:35:32 EDT 2009
Author: miker
Date: 2009-08-20 11:35:29 -0400 (Thu, 20 Aug 2009)
New Revision: 13898
Modified:
branches/rel_1_6/Open-ILS/src/sql/Pg/reporter-schema.sql
Log:
backport of r13897: thinko in recent ingest fix
Modified: branches/rel_1_6/Open-ILS/src/sql/Pg/reporter-schema.sql
===================================================================
--- branches/rel_1_6/Open-ILS/src/sql/Pg/reporter-schema.sql 2009-08-20 15:34:25 UTC (rev 13897)
+++ branches/rel_1_6/Open-ILS/src/sql/Pg/reporter-schema.sql 2009-08-20 15:35:29 UTC (rev 13898)
@@ -175,14 +175,12 @@
CREATE VIEW reporter.super_simple_record AS SELECT * FROM reporter.materialized_simple_record;
CREATE OR REPLACE FUNCTION reporter.simple_rec_update (r_id BIGINT, deleted BOOL) RETURNS BOOL AS $$
-DECLARE
- new_data RECORD;
BEGIN
DELETE FROM reporter.materialized_simple_record WHERE id = r_id;
IF NOT deleted THEN
- INSERT INTO reporter.materialized_simple_record SELECT DISTINCT ON (id) * FROM reporter.old_super_simple_record WHERE id = NEW.record;
+ INSERT INTO reporter.materialized_simple_record SELECT DISTINCT ON (id) * FROM reporter.old_super_simple_record WHERE id = r_id;
END IF;
RETURN TRUE;
More information about the open-ils-commits
mailing list