-- -- faq__new_faq/8 -- create or replace function faq__new_faq( p_faq_id integer, p_faq_name character varying, p_separate_p boolean, p_object_type character varying, p_creation_date timestamp with time zone, p_creation_user integer, p_creation_ip character varying, p_context_id integer ) returns int4 as $$ DECLARE v_faq_id faqs.faq_id%TYPE; BEGIN v_faq_id := acs_object__new ( p_faq_id, p_object_type, p_creation_date, p_creation_user, p_creation_ip, p_context_id, 't', p_faq_name, p_context_id ); insert into faqs (faq_id, faq_name,separate_p) values (v_faq_id, p_faq_name,p_separate_p); return v_faq_id; END; $$ language plpgsql;