correct nextIDFunc

This commit is contained in:
Carlos Ruiz 2008-11-01 03:03:29 +00:00
parent 6fc6478b92
commit e8f0b1b3ad
1 changed files with 6 additions and 3 deletions

View File

@ -1,10 +1,13 @@
CREATE OR REPLACE FUNCTION nextidfunc(
p_AD_Sequence_ID IN INTEGER,
p_System IN VARCHAR,
o_NextID OUT INTEGER
p_System IN VARCHAR
)
RETURNS INTEGER AS $body$
DECLARE
o_NextIDFunc INTEGER;
dummy INTEGER;
BEGIN
RETURN nextid(p_AD_Sequence_ID, p_System, o_NextID);
o_NextIDFunc := nextid(p_AD_Sequence_ID, p_System);
RETURN o_NextIDFunc;
END;
$body$ LANGUAGE plpgsql;