Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Rogan Hamby <rogan.hamby@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
SELECT * FROM actor.org_unit WHERE parent_ou IS NULL LIMIT 1;
$$ LANGUAGE SQL STABLE;
-CREATE OR REPLACE FUNCTION array_remove(inp ANYARRAY, el ANYELEMENT)
-RETURNS anyarray AS $$
- SELECT ARRAY_AGG(x.e) FROM UNNEST( $1 ) x(e) WHERE x.e <> $2;
-$$ LANGUAGE SQL STABLE;
-
CREATE OR REPLACE FUNCTION evergreen.rank_ou(lib INT, search_lib INT, pref_lib INT DEFAULT NULL)
RETURNS INTEGER AS $$
SELECT COALESCE(
END;
$func$ LANGUAGE PLPGSQL;
-COMMIT;
-
- sort_value TEXT
-);
-
CREATE OR REPLACE FUNCTION biblio.extract_metabib_field_entry (
rid BIGINT,
default_joiner TEXT,
END;
$func$ LANGUAGE PLPGSQL;
--- Shall we drop it?
--- DROP FUNCTION evergreen.array_remove_item_by_value(ANYARRAY, ANYELEMENT)
+-- We no longer need the custom function
+DROP FUNCTION evergreen.array_remove_item_by_value(ANYARRAY, ANYELEMENT);
COMMIT;