KI_BEGIN

Start a transaction on a database

Synopsis:
CALL KI_BEGIN connect, [type] TO status
status = 'ki_begin( connect, [type] )
ArgumentEnumerationPurpose
connectDatabase connection
typeKDB_TRANS_ENUMOptional extra flags
statusKDB_ERROR_ENUMReturn status
>KI_BEGIN

KI_BEGIN

This function is used to start a transaction on a database. All updates done to the database after this will only be committed when a KI_COMMIT call is made. An error or an explicit KI_ROLLBACK will abandon the changes.

This mechanism for controlling transactions has been replaced in KCML 6.20 by the WHILE TRANS ... END TRANS loop which allows deadlocks to be handled automatically.

History
Introduced in KCML 4.00
See Also:
KI_COMMIT, KI_LOG_SYNC, KI_ROLLBACK, KI_SET_MODE, KI_SNAPSHOT, KI_TABLE_SYNC
KCML database status codes