Error, or not implemented
Error, or not implemented
I am reading the property tfield.required and always is false, ¿ is not implemented or is bug ?
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.
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.