Error, or not implemented

Error, or not implemented

Postby armalite » Tue 09 Nov 2010 11:58

I am reading the property tfield.required and always is false, ¿ is not implemented or is bug ?
armalite
 
Posts: 5
Joined: Tue 09 Nov 2010 11:54

Postby 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.
AlexP
Devart Team
 
Posts: 5528
Joined: Tue 10 Aug 2010 11:35


Return to dbExpress driver for PostgreSQL