Delphi XE2 + Zeos 7.0.3 Stable + Firebird 1.0
I am porting an old app from Delphi 5 + IBX and got this problem:
I have a table that one for the fields is auto calculated:
NUMERIC(18,2)
COMPUTED BY (( (VAL_ITENS +
VAL_SERVICO +
TAXAENTRADA +
VAL_COUVERT +
VAL_ESTACION +
VAL_CONSUM +
VAL_TAXA-DESCONTO_V) - ((VAL_ITENS*DESCONTO_P)/100)))
On IBX it is calculated fine. On ZeosLib it does not get calculated. Using the same database file and server.
Is there a way to force this calculation to happen? I have tried to update the field by program, however it is read only.
ANSWER: I had some problems with Zeos and Firebird, so I was thinking ALL the problems were related to Zeos, and this is not the case, the problem is that one of the fields were NULL and the result was getting calculated as NULL.