I try to update my application from Zeos 7.2.0b to new 8.0.0 but I have first trouble.
I have this query:
Code: Select all
UPDATE
DOC_FE DFE
SET
DFE.STATO = :Stato
WHERE
DFE.STATO < :Stato
AND DFE.DOC_TESTA_ID = (SELECT
DT.ID
FROM
DOC_TESTA DT,
TIPO_DOCUMENTI TD
WHERE
DT.DOCUMENTO_ID = TD.ID
AND TD.DESCRIZIONE = :Documento
AND DT.NUMERO = :Numero
AND DT.SERIE = :Serie
AND DT.DATA = :Data
)
the same passing:query1.Params.ParamByName('Data').AsDate := DocumentoData;
run time firebird 2.5.9 results in a -303 error tha says:query1.Params.ParamByName('Data').AsDate := StrToDate('01/03/2021');
Instead, in this query:Incompatible column/host variable data type; arithmetic exception, numeric overflow, or string truncation; Arithmetic overflow or division by zero has occurred.
Code: Select all
SELECT FIRST 1
A.*
FROM
AZIENDA A
WHERE
A.DECORRENZA <= :DATA
ORDER BY
A.DECORRENZA Desc
result Ok, no error.
With 7.2.0b both query results Ok.
What I'm wrong?
Thanks