[open-ils-commits] r13900 - branches/rel_1_6_0/Open-ILS/src/sql/Pg (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Aug 20 11:36:35 EDT 2009
Author: miker
Date: 2009-08-20 11:36:32 -0400 (Thu, 20 Aug 2009)
New Revision: 13900
Modified:
branches/rel_1_6_0/Open-ILS/src/sql/Pg/1.4.0.5-1.6.0.0-upgrade-db.sql
Log:
update, re, update script re: thinko in recent ingest fix
Modified: branches/rel_1_6_0/Open-ILS/src/sql/Pg/1.4.0.5-1.6.0.0-upgrade-db.sql
===================================================================
--- branches/rel_1_6_0/Open-ILS/src/sql/Pg/1.4.0.5-1.6.0.0-upgrade-db.sql 2009-08-20 15:35:43 UTC (rev 13899)
+++ branches/rel_1_6_0/Open-ILS/src/sql/Pg/1.4.0.5-1.6.0.0-upgrade-db.sql 2009-08-20 15:36:32 UTC (rev 13900)
@@ -3857,17 +3857,17 @@
*/
$$;
+COMMIT;
+
SELECT reporter.disable_materialized_simple_record_trigger();
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;
@@ -3922,7 +3922,6 @@
AFTER UPDATE ON biblio.record_entry
FOR EACH ROW EXECUTE PROCEDURE reporter.reporter.simple_rec_bib_sync();
-COMMIT;
---------!!!!!!!!!!!!!!!!!!!!!!---------------
More information about the open-ils-commits
mailing list