Data.DB.TDataSet.PSIsSQLSupported

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: protected
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TDataSet

Delphi

function PSIsSQLSupported: Boolean; virtual;

C++

virtual bool __fastcall PSIsSQLSupported();

Description

Indicates whether the dataset can execute SQL statements.

PSIsSQLSupported indicates whether the provider can call PSExecuteStatement to execute an SQL statement. When PSIsSQLSupported returns False, calling PSExecuteStatement generates an exception. The provider can still work with a dataset that returns False from PSIsSQLSupported, but it must set the ResolveToDataSet property to True, or provide data on a read-only basis.

This method is an implementation of the IProviderSupport.PSIsSQLSupported 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