Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-08

Calculated fields in TSQLQuery

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin Schreiber

Hi,
I have problems with calculated fields (FieldKind = fkCalculated) in TSQLQuery. It seems that OnCalcFields is not called on record fetching and it is not possible to set field values in dsCalcFields state. Do calculated fields work in TSQLQuery?

Martin

Reply by email

Joost van der Sluis
to Martin Schreiber
Martin Schreiber wrote
I have problems with calculated fields (FieldKind = fkCalculated) in TSQLQuery. It seems that OnCalcFields is not called on record fetching and it is not possible to set field values in dsCalcFields state. Do calculated fields work in TSQLQuery?

I never looked at it, only committed some patches from others. So I guess it's not very stable.

Joost

Reply by email

Martin Schreiber
to Joost van der Sluis
Joost van der Sluis wrote 9 lines
On Tue, 2006-08-22 at 08:02 +0200, Martin Schreiber wrote: > I have problems with calculated fields (FieldKind = fkCalculated) in > TSQLQuery. It seems that OnCalcFields is not called on record fetching > and it is not possible to set field values in dsCalcFields state. > Do calculated fields work in TSQLQuery? I never looked at it, only committed some patches from others. So I guess it's not very stable.

Thanks, I submitted Mantis 7294 and 7295.
It is a good chance to implement the really useful internal calc fields too (Mantis 7157). :-)

Martin

Reply by email