LP#1928258: update pgTAP regression test
authorGalen Charlton <gmc@equinoxOLI.org>
Mon, 27 Sep 2021 13:43:18 +0000 (09:43 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Mon, 27 Sep 2021 13:43:18 +0000 (09:43 -0400)
Now that update_bib_editor is split out into a separate
merge profile field, need to account for that in the regression
test for 1447746.

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>

Open-ILS/src/sql/Pg/t/regress/lp1447746_update_date_and_source.pg

index 7ffeb3c..82c46ad 100644 (file)
@@ -23,8 +23,8 @@ UPDATE actor.usr
     SET card = CURRVAL('actor.card_id_seq')
     WHERE id = CURRVAL('actor.usr_id_seq');
 
-INSERT INTO vandelay.merge_profile (owner, name, preserve_spec, update_bib_source)
-    VALUES (1, 'TEST', '901c', TRUE);
+INSERT INTO vandelay.merge_profile (owner, name, preserve_spec, update_bib_source, update_bib_editor)
+    VALUES (1, 'TEST', '901c', TRUE, TRUE);
 
 --XXX: Do we need to create a custom item_attr_def?
 --     If def 1 was deleted from an install, this will break
@@ -85,7 +85,8 @@ SELECT is(
 --------------------------------
 
 UPDATE vandelay.merge_profile
-   SET update_bib_source = FALSE
+   SET update_bib_source = FALSE,
+       update_bib_editor = FALSE
    WHERE name = 'TEST';
 
 INSERT INTO biblio.record_entry (id, source, edit_date, last_xact_id, marc)