Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTBase::Abort

Syntax

void Abort ( )

Parameters

This method has no parameters.

Description

Aborts a transaction started with a call to Begin(). Note that Abort does not free any locks. Locks acquired during the transaction need to be released with a call to Unlock or CTRecord::UnlockRecord().

Return

None.

Example


pSession->Begin;

try {

pDatabase->AddTable("custmast", "");

printf("\nTable added to database.");

pSession->Commit;

}

catch (CTException& err)

{

Abort( );

printf("\n\n%d %s",err.GetErrorCode, err.GetErrorMsg);

}


See also

Begin(), Commit(), IsTransActive(), SetKeepLock(), Locking

TOCIndex