Data.DB.IProviderSupport.PSUpdateRecord

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function PSUpdateRecord(UpdateKind: TUpdateKind; Delta: TDataSet): Boolean;

C++

virtual bool __fastcall PSUpdateRecord _DEPRECATED_ATTRIBUTE0 (TUpdateKind UpdateKind, TDataSet* Delta) = 0 ;

Properties

Type Visibility Source Unit Parent
function public
Data.DB.pas
Data.DB.hpp
Data.DB IProviderSupport

Description

Warning: PSUpdateRecord is deprecated. Please use IProviderSupportNG.

Applies a single update to the underlying database table or tables.

Before the provider generates SQL statements to apply an update, it calls PSUpdateRecord to let the dataset apply the update in some other fashion.

UpdateKind indicates whether the update is an insertion (ukInsert), deletion (ukDelete), or modification (ukModify).

Delta is the delta datapacket. The current record represents the record to be updated.

PSUpdateRecord returns true if it updates the record, false otherwise. If PSUpdateRecord returns false, the provider generates dynamic SQL to perform the update and calls PSExecuteStatement.

Note: PSUpdateRecord is only called if the provider's ResolveToDataSet property is false.

See Also