[open-ils-commits] r13897 - trunk/Open-ILS/src/sql/Pg (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Aug 20 11:34:27 EDT 2009
Author: miker
Date: 2009-08-20 11:34:25 -0400 (Thu, 20 Aug 2009)
New Revision: 13897
Modified:
trunk/Open-ILS/src/sql/Pg/reporter-schema.sql
Log:
thinko in recent ingest fix
Modified: trunk/Open-ILS/src/sql/Pg/reporter-schema.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/reporter-schema.sql 2009-08-20 15:13:02 UTC (rev 13896)
+++ trunk/Open-ILS/src/sql/Pg/reporter-schema.sql 2009-08-20 15:34:25 UTC (rev 13897)
@@ -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