Code
The object and variable declarations are the following:
FdoICommandCapabilities * commandCapabilities;
// this will contain values of type FdoCommandType
and
// possibly values of type FdoRdbmsCommandType,
which are
// provider-specific commands
FdoInt32 * commandTypes;
bool supportsParameters;
bool supportsTimeout;
bool supportsSelectExpressions;
bool supportsSelectFunctions;
bool supportsSelectDistinct;
bool supportsSelectOrdering;
bool supportsSelectGrouping;
The method calls are the following:
commandCapabilities = connection->GetCommandCapabilities();
// this returns a list of command types
commandTypes = commandCapabilities->GetCommands();
// loop through the commandTypes
supportsParameters = commandCapabilities->SupportsParameters();
supportsTimeout = commandCapabilities->SupportsTimeout();
supportsSelectExpressions = commandCapabilities->
SupportsSelectExpressions();
supportsSelectFunctions = commandCapabilities->
SupportsSelectFunctions();
supportsSelectDistinct = commandCapabilities->
SupportsSelectDistinct();
supportsSelectOrdering = commandCapabilities->
SupportsSelectOrdering();
supportsSelectGrouping = commandCapabilities->
SupportsSelectGrouping();