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
LANGUAGE plpgsql AS
DO
$func$
DECLARE
_mind timestamptz;
@ -22,10 +21,9 @@ BEGIN
FROM
evt.fspr;
IF
_maxd <= _mind
IF _maxd <= _mind THEN
RETURN;
END IF
END IF;
WITH
--list each period in min and max