Data.SqlExpr.TCustomSQLDataSet.PSGetCommandType
Delphi
function PSGetCommandType: TPSCommandType; override;
C++
virtual Data::Db::TPSCommandType __fastcall PSGetCommandType(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Data.SqlExpr.pas Data.SqlExpr.hpp |
Data.SqlExpr | TCustomSQLDataSet |
Description
Gets the command type to be executed by PSExecute.
Data.SqlExpr.TCustomSQLDataSet.PSGetCommandType inherits from Data.DB.TDataSet.PSGetCommandType. All content below this line refers to Data.DB.TDataSet.PSGetCommandType.
Gets the command type to be executed by PSExecute.
PSGetCommandType gets the command type to be executed by PSExecute. The type may be a type of SQL command or other command types, such as stored procedures.
This method is an implementation of the IProviderSupport.PSGetCommandType method and, by default, returns ctUnknown, because TDataSet does not implement a provider by default. To use it, every TDataSet descendant must override it in its specific way.