[open-ils-commits] [GIT] Evergreen ILS branch rel_2_2 updated. 15c732e11d6a0f881532ce6c4e52f8a45a9e9f81

Evergreen Git git at git.evergreen-ils.org
Mon Apr 9 09:30:26 EDT 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_2 has been updated
       via  15c732e11d6a0f881532ce6c4e52f8a45a9e9f81 (commit)
      from  8aa9c10e78c3d346b61947397733c4502d8e2b3f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 15c732e11d6a0f881532ce6c4e52f8a45a9e9f81
Author: Dan Scott <dan at coffeecode.net>
Date:   Mon Apr 9 08:59:55 2012 -0400

    Bug 957453: Fix error in database seed data
    
    The use of an explicit ID in creating a new
    action_trigger.event_definition row was followed by the use of the
    CURRVAL() function to grab the most recently issued value for
    the action_trigger.event_defintion_id_seq sequence - which happened to
    be 100, due to a previously issued SETVAL() on the sequence.
    
    This resulted in references to non-existent event definitions and thus
    an error in creating the stock database schema.
    
    By using an explicit ID for the dependent row, we avoid this error.
    
    Signed-off-by: Dan Scott <dan at coffeecode.net>
    Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>

diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql
index b4c6a26..d53ae14 100644
--- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql
+++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql
@@ -9289,7 +9289,7 @@ INSERT INTO action_trigger.environment (event_def, path) VALUES
     (38, 'bib_rec.bib_record.simple_record');
 
 INSERT INTO action_trigger.event_params (event_def, param, value)
-    VALUES (currval('action_trigger.event_definition_id_seq'), 'check_email_notify', 1);
+    VALUES (38, 'check_email_notify', 1);
 
 ----------------------------------------------------------------
 -- Seed data for queued record/item exports

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/sql/Pg/950.data.seed-values.sql |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list