2008-11-01 09:07:34 +07:00
|
|
|
CREATE OR REPLACE FUNCTION nextidfunc(
|
|
|
|
p_AD_Sequence_ID IN INTEGER,
|
2008-11-01 10:03:29 +07:00
|
|
|
p_System IN VARCHAR
|
2008-11-01 09:07:34 +07:00
|
|
|
)
|
|
|
|
RETURNS INTEGER AS $body$
|
2008-11-01 10:03:29 +07:00
|
|
|
DECLARE
|
|
|
|
o_NextIDFunc INTEGER;
|
|
|
|
dummy INTEGER;
|
2008-11-01 09:07:34 +07:00
|
|
|
BEGIN
|
2008-11-01 10:03:29 +07:00
|
|
|
o_NextIDFunc := nextid(p_AD_Sequence_ID, p_System);
|
|
|
|
RETURN o_NextIDFunc;
|
2008-11-01 09:07:34 +07:00
|
|
|
END;
|
|
|
|
$body$ LANGUAGE plpgsql;
|