Language Reference Guide : System Classes : DBSessionObject Class : SetAutoCommit Method
 
Share this page          
SetAutoCommit Method
The SetAutoCommit method sets the autocommit status of the database session.
This method has the following syntax:
integer = DBSessionObject.SetAutoCommit(state = integer)
This method has the following parameter:
state
Specifies the state of autocommit. Valid values are:
TRUE
Sets autocommit on
FALSE
Sets autocommit off
Default: FALSE
The SetAutoCommit method returns ER_OK on success. Otherwise, it returns a non-zero value. Descriptions of system constant values and their numeric equivalents are listed in Error Codes.
Invoking this method has the same effect as issuing the SQL set autocommit statement.