Error, or not implemented

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for PostgreSQL in Delphi and C++Builder
Post Reply
armalite
Posts: 5
Joined: Tue 09 Nov 2010 11:54

Error, or not implemented

Post by armalite » Tue 09 Nov 2010 11:58

I am reading the property tfield.required and always is false, ¿ is not implemented or is bug ?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Wed 10 Nov 2010 14:00

Hello,

To detect required or autoincrement fields you should set the ExtendedFieldsInfo options to true like

in Delphi 2006 and lower IDE versions:

procedure TForm1.SQLConnection1AfterConnect(Sender: TObject);
const
coExtendedFieldsInfo = TSQLConnectionOption(502);
begin
SQLConnection1.SQLConnection.SetOption(coExtendedFieldsInfo, Integer(True));
end;


Starting with CodeGear RAD Studio 2007:

SQLConnection.Params.Values['ExtendedFieldsInfo'] := 'true';


more information about it you can find in the .. \Devart\Dbx\PostgreSQL\Readme.html file.

Post Reply