odbcSetAutoCommit(channel, autoCommit=TRUE)odbcEndTran(channel, commit=TRUE)
odbcConnect
.odbcSetAutoCommit
stops if channel
is an invalid
connection. The function returns (-1) on error, (0) on success and (1)
on success with a message that would be returned by
odbcGetErrMsg
.commit
or rollback
. Switching a connection to auto-commit mode
commits the pending transaction. By default, new connections are in auto-commit mode. If auto-commit
mode has been disabled, a call to odbcEndTran
or an SQL
commit
statement must be executed in order to commit changes;
otherwise, pending database changes will not be saved.