Show pageOld revisionsBacklinksExport to PDFFold/unfold allBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== pears.NetSetVacancyCascade ====== <WRAP center round info> Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. </WRAP> ===== Original SQL ===== <code sql> create procedure "pears"."NetSetVacancyCascade"( in "svacid" char(20) ) begin declare "dtCascade" "datetime"; select "getvacancycascadetime"("employment"."companyid","vacancy"."vacancyid",current timestamp,"vacancy"."startdate",current timestamp,1) into "dtCascade" from "vacancy" key join "employment" where "vacancy"."vacancyid" = "svacid"; if "dtCascade" is not null then update "vacancy" set "cascadedatetime" = "dtCascade" where "vacancyid" = "svacid" end if end go COMMENT TO PRESERVE FORMAT ON PROCEDURE "pears"."NetSetVacancyCascade" IS {create PROCEDURE pears."NetSetVacancyCascade"( in "svacid" char(20) ) begin declare "dtCascade" "datetime"; select "getvacancycascadetime"("employment"."companyid","vacancy"."vacancyid",current timestamp,"vacancy"."startdate",current timestamp,1) into "dtCascade" from "vacancy" key join "employment" where "vacancy"."vacancyid" = "svacid"; if "dtCascade" is not null then update "vacancy" set "cascadedatetime" = "dtCascade" where "vacancyid" = "svacid" end if end } </code> database/procedures/pears_netsetvacancycascade.txt Last modified: 2026/08/07 19:24by 127.0.0.1