-- -- url__new/9 -- create or replace function url__new( integer, character varying, character varying, character varying, text, text, integer, character varying, integer ) returns int4 as $$ DECLARE p_url_id ALIAS FOR $1; p_url_title ALIAS FOR $2; p_host_url ALIAS FOR $3; -- default null p_complete_url ALIAS FOR $4; p_meta_keywords ALIAS FOR $5; -- default null p_meta_description ALIAS FOR $6; -- default null p_creation_user ALIAS FOR $7; -- default null p_creation_ip ALIAS FOR $8; -- default null p_context_id ALIAS FOR $9; -- default null v_url_id integer; BEGIN v_url_id := acs_object__new(p_url_id,'url',now(),p_creation_user,p_creation_ip,p_context_id); insert into bm_urls (url_id, url_title, host_url, complete_url, meta_keywords, meta_description) values (v_url_id, p_url_title, p_host_url, p_complete_url, p_meta_keywords, p_meta_description); return v_url_id; END; $$ language plpgsql;