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
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 ?

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

Post by AlexP » Wed 10 Nov 2010 14:00


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);
coExtendedFieldsInfo = TSQLConnectionOption(502);
SQLConnection1.SQLConnection.SetOption(coExtendedFieldsInfo, Integer(True));

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