work on doing a roll-forward inside gl trigger
This commit is contained in:
parent
e6770c243b
commit
7f59452298
@ -5,18 +5,15 @@ CREATE OR REPLACE FUNCTION evt.gl_insert() RETURNS trigger
|
||||
AS
|
||||
$func$
|
||||
DECLARE
|
||||
_lastid ltree;
|
||||
_lastdur tstzrange;
|
||||
_newdur tstzrange;
|
||||
BEGIN
|
||||
|
||||
--get last global rollforward
|
||||
SELECT
|
||||
id
|
||||
,dur
|
||||
dur
|
||||
INTO
|
||||
_lastid
|
||||
,_lastdur
|
||||
_lastdur
|
||||
FROM
|
||||
evt.fspr
|
||||
WHERE
|
||||
|
Loading…
Reference in New Issue
Block a user