-- -- content_keyword__new/8 -- create or replace function content_keyword__new( character varying, character varying, integer, integer, timestamp with time zone, integer, character varying, character varying ) returns int4 as $$ declare new__heading alias for $1; new__description alias for $2; -- default null new__parent_id alias for $3; -- default null new__keyword_id alias for $4; -- default null new__creation_date alias for $5; -- default now() new__creation_user alias for $6; -- default null new__creation_ip alias for $7; -- default null new__object_type alias for $8; -- default 'content_keyword' begin return content_keyword__new(new__heading, new__description, new__parent_id, new__keyword_id, new__creation_date, new__creation_user, new__creation_ip, new__object_type, null ); end;$$ language plpgsql; -- -- content_keyword__new/9 -- create or replace function content_keyword__new( character varying, character varying, integer, integer, timestamp with time zone, integer, character varying, character varying, integer ) returns int4 as $$ declare new__heading alias for $1; new__description alias for $2; -- default null new__parent_id alias for $3; -- default null new__keyword_id alias for $4; -- default null new__creation_date alias for $5; -- default now() new__creation_user alias for $6; -- default null new__creation_ip alias for $7; -- default null new__object_type alias for $8; -- default 'content_keyword' new__package_id alias for $9; -- default null v_id integer; v_package_id acs_objects.package_id%TYPE; begin if new__package_id is null then v_package_id := acs_object__package_id(new__parent_id); else v_package_id := new__package_id; end if; v_id := acs_object__new (new__keyword_id, new__object_type, new__creation_date, new__creation_user, new__creation_ip, new__parent_id, 't', new__heading, v_package_id ); insert into cr_keywords (heading, description, keyword_id, parent_id) values (new__heading, new__description, v_id, new__parent_id); return v_id; end;$$ language plpgsql;