Sent in fb-devel by Jiri Cincura with thread "Procedure has a signature mismatch on package body".
I'm getting the error in %subj%, when I try to recreate package body of an existing package, BUT the package body is taken without any changes from rdb$packages.rdb$package_body_source. How is this possible? If I do "create or alter" on header (again taken from rdb$packages) right before it's fine. The rbb$valid_body_flag is 1.
The package itself has only one procedure with this definition:
CREATE OR ALTER PACKAGE QRY_STAFF AS
procedure SALES_PER_USER_PRODUCTGROUP (
OUT_US_NAME type of column T_USER.F_US_USERNAME,
OUT_PERS_NAME type of column T_PERSON.F_PERS_NAME,
OUT_PERS_FIRSTNAME type of column T_PERSON.F_PERS_FIRSTNAME,
OUT_PG_NAME type of column T_PRODUCT_GROUP.CF_PG_NAME,
OUT_TOTAL type of D_DECIMAL);
Not something terribly complicated. The only inteeresting thing is the OUT_PG_NAME parameter, which uses "type of column" on a "computed by" table column.