function errors

This commit is contained in:
Paul Trowbridge 2018-09-25 13:59:09 -04:00
parent a39df2aa1c
commit 47ef81b318

View File

@ -1,6 +1,5 @@
CREATE FUNCTION evt.balrf() RETURNS void CREATE FUNCTION evt.balrf() RETURNS void
LANGUAGE plpgsql AS LANGUAGE plpgsql AS
DO
$func$ $func$
DECLARE DECLARE
_mind timestamptz; _mind timestamptz;
@ -22,10 +21,9 @@ BEGIN
FROM FROM
evt.fspr; evt.fspr;
IF IF _maxd <= _mind THEN
_maxd <= _mind
RETURN; RETURN;
END IF END IF;
WITH WITH
--list each period in min and max --list each period in min and max