FireDAC.Comp.Client.TFDAdaptedDataSet.PSIsSQLBased

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function PSIsSQLBased: Boolean; override;

C++

virtual bool __fastcall PSIsSQLBased();

Properties

Type Visibility Source Unit Parent
function protected
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDAdaptedDataSet

Description

Indicates whether the dataset includes native SQL support.

FireDAC.Comp.Client.TFDAdaptedDataSet.PSIsSQLBased inherits from Data.DB.TDataSet.PSIsSQLBased. All content below this line refers to Data.DB.TDataSet.PSIsSQLBased.

Indicates whether the dataset includes native SQL support.

The provider calls PSIsSQLBased to determine whether the dataset supports some form of native SQL. This information is used when generating SQL commands that are executed by PSExecuteStatement.

Even if the dataset is not SQL-based, it may still allow the provider to execute SQL statements for applying updates. However, table and field names are not specified in the same way for the local SQL engine as they are for native SQL. The provider uses PSIsSQLBased to determine how these names should appear in generated SQL.

This method is an implementation of the IProviderSupport.PSIsSQLBased method and, by default, returns False, because TDataSet does not implement a provider by default. To use it, every TDataSet descendant must override it in its specific way.

See Also