postgresql7.1 select case_id, acs_object__name(object_id) as object_name, state from wf_cases where case_id = :case_id