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
|
AS
|
||||||
$func$
|
$func$
|
||||||
DECLARE
|
DECLARE
|
||||||
_lastid ltree;
|
|
||||||
_lastdur tstzrange;
|
_lastdur tstzrange;
|
||||||
_newdur tstzrange;
|
_newdur tstzrange;
|
||||||
BEGIN
|
BEGIN
|
||||||
|
|
||||||
--get last global rollforward
|
--get last global rollforward
|
||||||
SELECT
|
SELECT
|
||||||
id
|
dur
|
||||||
,dur
|
|
||||||
INTO
|
INTO
|
||||||
_lastid
|
_lastdur
|
||||||
,_lastdur
|
|
||||||
FROM
|
FROM
|
||||||
evt.fspr
|
evt.fspr
|
||||||
WHERE
|
WHERE
|
||||||
|
Loading…
Reference in New Issue
Block a user