Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IDBCStmt::execute ( P6DBCQUERYRESULT  pfn,
P6VOID pCtx,
p6IDBCResultSet **  pResults,
P6UINT32 pRowCount 
)
pure virtual

Result of the prepared statement when applied against the connected database.

Note that the pResults parameter can be returned with a NULL value when the result of the query is an empty set.

Parameters
pfn[ in ] Pointer to a callback function to be invoked once the query is complete or has failed. If set to NULL, then the call is blocking, otherwise it returns immedately with a "eOk" result and a call to this function will happen sometimes in the future.
pCtx[ in ] Can be NULL, pointer to a context that is passed to the pfn callback once the connection result is known. This memory is allocated and freed only by the caller.
pResults[ out ] One or more rows returned as the result of the query. Pointer can be set to NULL if the result is unwanted. Will be NULL if the pfn parameter is set, since it will be returned in the callback.
pRowCount[ out ] Number of rows effected by the query. Pointer can be set to NULL if the result is unwanted. Value will not be modified if the pfn parameter is set, since it will be returned in the callback. Note, that for Sqlite3 this parameter is only supported for queries with 'Insert', 'Delete', and 'Update' (for all other queries a value of zero is returned).
Returns
SuccessP6R::eOk 
FailureP6R::eNoMemoryInsuffficient memory to properly initialize the component
P6R::eInvalidArgOne of the pointers is NULL
P6R::eBusyDatabase was locked and query could not be performed.