TSQLQuery.UsePrimaryKeyAsKey property
Should primary key fields be marked
pfInKey.
Declaration
property UsePrimaryKeyAsKey:;Description
UsePrimaryKeyAsKey can be set to
True to let
TSQLQuery fetch all server indexes and if there is a primary key,
update the
ProviderFlags of the
fields in the primary key with
pfInKey.
The effect of this is that when UpdateMode
equals upWhereKeyOnly, then only the fields that are part of the primary key
of the table will be used in the update statements. For more information,
see UpdateSQLs.
Note that this property only takes effect if the fields are the default fields: if persistent fields were created, the providerflags of the fields are not updated.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
