====== pears.ReportImageFetch ======
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
===== Original SQL =====
COMMENT TO PRESERVE FORMAT ON PROCEDURE "pears"."ReportImageFetch" IS
{create function ReportImageFetch
/* Application Maintained Function / Procedure - DO NOT EDIT*/
( in ReportImageName char(50) )
returns long binary
begin
return blobstorefetch('R',(select first reportid from report where filename=ReportImageName order by 1));
end
}