Invalid Request BLR
Posted: 24.04.2010, 10:42
Hi,
I tried to create a stored proc at runtime with an TZSQLProcessor component which has its DelimiterType set to dtSetTerm but when I execute the script I had this message :
Invalid Request BLR at at offset 208 invalid parameter number
XP, D7, FB2.0, Zeos 664
Here is the code :
Thanks
I tried to create a stored proc at runtime with an TZSQLProcessor component which has its DelimiterType set to dtSetTerm but when I execute the script I had this message :
Invalid Request BLR at at offset 208 invalid parameter number
XP, D7, FB2.0, Zeos 664
Here is the code :
Code: Select all
SET TERM ^ ;
CREATE PROCEDURE GET_TOTAL (
ID_FNM INTEGER,
CR_DATE DATE)
RETURNS (
TOT_BP DECIMAL(15,2),
TOT_BS DECIMAL(15,2),
TOT_VIR_D DECIMAL(15,2),
TOT_VIR_E DECIMAL(15,2))
AS
begin
/* BP */
select sum(MT_BP) - SUM(MT_REGIE) from FNM
where Id_FNM=:Id_FNm and date_bp <=:cr_date
into tot_bp;
/* BS */
select sum(MT_BS) from FNM
where Id_FNM=:Id_FNm and date_bs <=:cr_date
into tot_bs;
/* VIR D */
select sum(MONTANT) from virement
where Sens='D' and Id_FNM=:Id_FNm and date_vir <=:cr_date
into tot_vir_D;
/* VIR E */
select sum(MONTANT) from virement
where Sens='E' and Id_FNM=:Id_FNm and date_vir <=:cr_date
into tot_vir_E;
suspend;
end^
SET TERM ; ^
Thanks