correct nextIDFunc
This commit is contained in:
parent
6fc6478b92
commit
e8f0b1b3ad
|
@ -1,10 +1,13 @@
|
||||||
CREATE OR REPLACE FUNCTION nextidfunc(
|
CREATE OR REPLACE FUNCTION nextidfunc(
|
||||||
p_AD_Sequence_ID IN INTEGER,
|
p_AD_Sequence_ID IN INTEGER,
|
||||||
p_System IN VARCHAR,
|
p_System IN VARCHAR
|
||||||
o_NextID OUT INTEGER
|
|
||||||
)
|
)
|
||||||
RETURNS INTEGER AS $body$
|
RETURNS INTEGER AS $body$
|
||||||
|
DECLARE
|
||||||
|
o_NextIDFunc INTEGER;
|
||||||
|
dummy INTEGER;
|
||||||
BEGIN
|
BEGIN
|
||||||
RETURN nextid(p_AD_Sequence_ID, p_System, o_NextID);
|
o_NextIDFunc := nextid(p_AD_Sequence_ID, p_System);
|
||||||
|
RETURN o_NextIDFunc;
|
||||||
END;
|
END;
|
||||||
$body$ LANGUAGE plpgsql;
|
$body$ LANGUAGE plpgsql;
|
||||||
|
|
Loading…
Reference in New Issue