and Matthew Berowski for typo fixes to 2.8 Release Notes.
Signed-off-by: Josh Stompro <stomproj@larl.org>
ALTER TABLE action.circulation
ADD COLUMN hide_from_usr_history boolean not null default false;
-COMMIT;
-
-BEGIN;
-
CREATE OR REPLACE FUNCTION action.usr_visible_circs(usr_id integer)
- RETURNS SETOF action.circulation
- LANGUAGE plpgsql
-AS $function$
+ RETURNS SETOF action.circulation AS $function$
DECLARE
c action.circulation%ROWTYPE;
view_age INTERVAL;
AND NOT hide_from_usr_history
ORDER BY xact_start DESC
LOOP
-RETURN NEXT c;
+ RETURN NEXT c;
END LOOP;
RETURN;
END;
-$function$
+$function$ LANGUAGE PLPGSQL;
COMMIT;