fix yet another error
authorGalen Charlton <gmc@equinoxinitiative.org>
Tue, 13 Jun 2017 20:47:48 +0000 (20:47 +0000)
committerGalen Charlton <gmc@equinoxinitiative.org>
Tue, 13 Jun 2017 20:47:48 +0000 (20:47 +0000)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/sql/Pg/011.schema.authority.sql
Open-ILS/src/sql/Pg/upgrade/YYYY.schema.thesauri.sql

index be25558..9afb840 100644 (file)
@@ -222,7 +222,7 @@ BEGIN
         thes_code := '|';
     ELSIF thes_code = 'z' THEN
         thes_code := COALESCE( oils_xpath_string('//*[@tag="040"]/*[@code="f"][1]', marcxml), '' );
-    ELSE THEN
+    ELSE
         SELECT code INTO thes_code FROM authority.thesaurus WHERE short_code = thes_code;
         IF NOT FOUND THEN
             thes_code := '|'; -- default
index cceecc1..cd4875a 100644 (file)
@@ -449,7 +449,7 @@ BEGIN
         thes_code := '|';
     ELSIF thes_code = 'z' THEN
         thes_code := COALESCE( oils_xpath_string('//*[@tag="040"]/*[@code="f"][1]', marcxml), 'z' );
-    ELSE THEN
+    ELSE
         SELECT code INTO thes_code FROM authority.thesaurus WHERE short_code = thes_code;
         IF NOT FOUND THEN
             thes_code := '|'; -- default