- Pepe Cuenca
- PowerBuilder
- Wednesday, 28 April 2021 07:27 AM UTC
Good Morning Everyone,
I'm having an strange issue while testing an application which connects to an Informix Database.
The thing is that it connects ok, but when I execute an SQL command:
select sum(importe) into :lc_importe_menos
from ftransf
where cenbanc = :is_cenbanc
and csubanc = :is_csubanc
and ncuenta = :is_ncuenta
and clvdeha = '1'
and foper <= :id_fecha
and foper >= :id_fec_saldo_ini
using itr_sqlca;
If I run the application, it works good, but if I debug it, the transaction dbcode is -1206 and the sqlerrtext is "SQL Error -1206 : Invalid day in date".
Why, if the code is the same, acts different running and debugging?
Is there any way to solve this?
Thank you very much!
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.