irm-1.6-b3/MDB/mssql.php
/**
     * Define whether database changes done on the database be automatically
     * committed. This function may also implicitly start or end a transaction.
     *
     * @param boolean $auto_commit    flag that indicates whether the database
     *                                changes should be committed right after
     *                                executing every query statement. If this
     *                                argument is 0 a transaction implicitly
     *                                started. Otherwise, if a transaction is
     *                                in progress it is ended by committing any
     *                                database changes that were pending.
     *
     * @access public
     *
     * @return mixed MDB_OK on success, a MDB error on failure
     */
Define whether database changes done on the database be automatically
committed. This function may also implicitly start or end a transaction.

@param boolean $auto_commit    flag that indicates whether the database
changes should be committed right after
executing every query statement. If this
argument is 0 a transaction implicitly
started. Otherwise, if a transaction is
in progress it is ended by committing any
database changes that were pending.

@access public

@return mixed MDB_OK on success, a MDB error on failure
Define whether database changes done on the database be automatically committed . This function may also implicitly start or end a transaction . @param boolean $auto_commit flag that indicates whether the database changes should be committed right after executing every query statement . If this argument is 0 a transaction implicitly started . Otherwise if a transaction is in progress it is ended by committing any database changes that were pending . @access public @return mixed MDB_OK on success a MDB error on failure
function autoCommit($auto_commit)
    {
        $this->debug("AutoCommit: ".($auto_commit ? "On" : "Off"));
        if (!isset($this->supported['Transactions'])) {
            return($this->raiseError(MDB_ERROR_UNSUPPORTED, NULL, NULL,
                'Auto-commit transactions: transactions are not in use'));
        }
        if ($this->auto_commit == $auto_commit) {
            return(MDB_OK);
        }
        if ($this->connection) {
            if ($auto_commit) {
                $result = $this->query('COMMIT TRANSACTION');
            } else {
                $result = $this->query('BEGIN TRANSACTION');
            }
            if (MDB::isError($result)) {
                return($result);
            }
        }
        $this->auto_commit = $auto_commit;
        $this->in_transaction = !$auto_commit;
        return(MDB_OK);
    }
function autoCommit ( $ auto_commit ) { $ this -> debug ( " AutoCommit:  " . ( $ auto_commit ? " On " : " Off " ) ) ; if ( ! isset ( $ this -> supported [ 'Transactions' ] ) ) { return ( $ this -> raiseError ( MDB_ERROR_UNSUPPORTED , NULL , NULL , 'Auto-commit transactions: transactions are not in use' ) ) ; } if ( $ this -> auto_commit == $ auto_commit ) { return ( MDB_OK ) ; } if ( $ this -> connection ) { if ( $ auto_commit ) { $ result = $ this -> query ( 'COMMIT TRANSACTION' ) ; } else { $ result = $ this -> query ( 'BEGIN TRANSACTION' ) ; } if ( MDB :: isError ( $ result ) ) { return ( $ result ) ; } } $ this -> auto_commit = $ auto_commit ; $ this -> in_transaction = ! $ auto_commit ; return ( MDB_OK ) ; }
Define whether database changes done on the database be automatically
 committed.
Define whether database changes done on the database be automatically committed .