-- -- fs_url__new/10 -- create or replace function fs_url__new( integer, character varying, character varying, integer, character varying, character varying, timestamp with time zone, integer, character varying, integer ) returns int4 as $$ DECLARE p_url_id alias for $1; p_object_type alias for $2; p_url alias for $3; p_folder_id alias for $4; p_name alias for $5; p_description alias for $6; p_creation_date alias for $7; p_creation_user alias for $8; p_creation_ip alias for $9; p_context_id alias for $10; v_url_id integer; BEGIN v_url_id:= fs_simple_object__new ( p_url_id, p_object_type, p_folder_id, p_name, p_description, p_creation_date, p_creation_user, p_creation_ip, p_context_id ); insert into fs_urls (url_id, url) values (v_url_id, p_url); return v_url_id; END; $$ language plpgsql;