FieldDefs InternalCalcField

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
christio
Posts: 11
Joined: Mon 07 Jun 2010 13:01

FieldDefs InternalCalcField

Post by christio » Thu 07 Oct 2010 07:45

Hi,

How can I check if a field in a dataset (TIBCQuery) is a computed field?

CREATE TABLE RENNEN (
ID BIGINT NOT NULL,
SKILEHRER BIGINT,
COALESCED_SKILEHRER COMPUTED BY (coalesce(skilehrer, 0))
);


Neither Fields.ReadOnly nor FieldDefs.InternalCalcField returns true for the field "COALESCED_SKILEHRER". The dataset is filled with an SELECT statement.

Regards, ch.

AndreyZ

Post by AndreyZ » Thu 07 Oct 2010 12:25

Hello,

You cannot check that the field is computed by database. The fkCalculated and fkInternalCalc field types are used only for Delphi calculated fields. For database computed fields the field type is fkData.

christio
Posts: 11
Joined: Mon 07 Jun 2010 13:01

Post by christio » Thu 07 Oct 2010 12:50

With the IBX components the Fields.ReadOnly property was set to True if a field was computed by the database.

AndreyZ

Post by AndreyZ » Fri 08 Oct 2010 14:31

IBDAC doesn't support this functionality. We will investigate the possibility of adding this functionality in the future. As soon as we solve this question we will let you know.

christio
Posts: 11
Joined: Mon 07 Jun 2010 13:01

Post by christio » Mon 11 Oct 2010 08:58

Ok, thank you.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Fri 29 Oct 2010 09:49

To solve the problem set the TIBCQuery.Options.DefaultValues property to True.

Post Reply