skip to main content
IP API Reference for C/C++ : IP API for C/C++ : OASQLIP_prepare_to_commit
 

OASQLIP_prepare_to_commit

This function is used for distributed transactions.
int OASQLIP_prepare_to_commit(
SQLIP_HDBC sqlip_hdbc,
char *pCmdArgs,
int *piReadOnly)
 
Table 42: Parameters for OASQLIP_prepare_to_commit 
Parameter
Type
Description
INPUT
 
 
sqlip_hdbc
SQLIP_HDBC
Connection handle
pCmdArgs
char
Transaction ID and other details.
piReadOnly
int
Indicates whether the transaction is read only. Valid values are:
1 - Only read commands have been performed on this transaction.
0 - Data has been modified by this transaction.
RETURN
 
 
 
int
OADS_SUCCESS - transaction is ready.
OADS_ERROR - error was encountered preparing the transaction to commit. If the data source does not support distributed transactions, this is returned.