postgresql7.1 select calendar__new( null, :calendar_name, 'calendar', :owner_id, :private_p, :package_id, null, now(), :creation_user, :creation_ip ); select calendar__delete(:calendar_id)