PostgresDAC

TPSQLTable.Properties.OIDAsInt

Previous Next

Indicates whether an OID native Postgres field type will be treated as integer field or as Delphi BLOB field.

Syntax:

property OIDAsInt: Boolean;

Description:

Set the value of OIDAsInt to True to enable OIDAsInt fields type casting to integer type. Otherwise OID fields will be treated as BLOB's ones.

Set OIDAsInt to True when you are using system tables, e.g. pg_class.
Since OID type is unsigned integer be carefull when mixing integer types in your application!
Since there is no standard TField descendant for unsigned integer in Delphi, the developer is responsible for correct type casting!