====== pears.CanUploadVacancy ======
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
===== Original SQL =====
create function "pears"."CanUploadVacancy"( in "vacID" char(20) )
returns integer
begin
if exists(select "Vacancyid" from "vacancy" where "vacancyid" = "vacid" and "status" = 'C') then
return 1
else return 0
end if
end