FireDAC.Stan.Option.TFDUpdateOptions.CountUpdatedRecords

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property CountUpdatedRecords: Boolean read GetCountUpdatedRecords

C++

__property bool CountUpdatedRecords = {read=GetCountUpdatedRecords, write=SetCountUpdatedRecords, stored=IsCURS, default=1};

Properties

Type Visibility Source Unit Parent
property published
FireDAC.Stan.Option.pas
FireDAC.Stan.Option.hpp
FireDAC.Stan.Option TFDUpdateOptions

Description

Controls the checking of an updated record count.

Use CountUpdatedRecords to control whether FireDAC should check the updated records number or not. The default value is True

If CountUpdatedRecords is True and the number of updated records after posting a single update is not equal to 1, then an exception is raised and an update posting command is rolled back. 

If the record count is not equal to 1, but the update was posted successfully, then CountUpdatedRecords can be set to False.

See Also