Subject | Re: [ib-support] error in trigger |
---|---|
Author | Milan Babuskov |
Post date | 2003-01-03T08:52:53Z |
duilio_fos wrote:
HTH
--
Milan Babuskov
http://fbexport.sourceforge.net
> the enclosed trigger does not work as expected.That's because sometimes select returns only one row.
>
> At times, it causes a "multiple rows from singleton select" error.
>hm, it seems to me that the problem is here:
> I investigated the problem and found the culprit in the "select"
> starting at /* 1 */.
> select sum(q_c_acq+q_c_div-q_s_ven-q_s_div) from tb_cau1 wherethis select might return mulitple rows, and then you get the error.
> cod_cau=bl_lt.cod_cau into :sign;
HTH
--
Milan Babuskov
http://fbexport.sourceforge.net