From RAD Studio API Documentation
Jump to: navigation, search


function PSIsSQLSupported: Boolean; override;


virtual bool __fastcall PSIsSQLSupported();


Type Visibility Source Unit Parent
function protected
Bde.DBTables TBDEDataSet


Indicates whether the dataset can execute SQL statements.

Bde.DBTables.TBDEDataSet.PSIsSQLSupported inherits from Data.DB.TDataSet.PSIsSQLSupported. All content below this line refers to Data.DB.TDataSet.PSIsSQLSupported.

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