Page 1 of 1

Error, or not implemented

Posted: Tue 09 Nov 2010 11:58
by armalite
I am reading the property tfield.required and always is false, ¿ is not implemented or is bug ?

Posted: Wed 10 Nov 2010 14:00
by AlexP
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.