Get commit mode according to PDO::ATTR_AUTOCOMMIT
198106
public function getCommitMode() {
		if (is_null($this->_commitMode)) {
			if ($this->getAttribute(PDO::ATTR_AUTOCOMMIT)) {
				return OCI_COMMIT_ON_SUCCESS;
			}
			else {
				return ((PHP_VERSION_ID >= 503020) ? OCI_NO_AUTO_COMMIT : OCI_DEFAULT);
			}
		}

		return $this->_commitMode;
	}
1287526
public static function end_trans($commit_no_errors = true)
    {
        $db = self::Using(self::$using_dbo_id);
        return $db->end_trans($commit_no_errors);
    }
363530
public function commitTransaction() {
        $this->_fireEvent('phpsweetpdo.commit_transaction.started', array ());
        $result = $this->_pdoObject->commit();
        $this->_fireEvent('phpsweetpdo.commit_transaction.finished', array ('result' => &$result));

        return $result;
    }
651648
public function sqlPdoType()
    {
        $mode = $this->mode();

        if ($mode === self::MODE_AUTO_INCREMENT) {
            return PDO::PARAM_INT;
        } else {
            return PDO::PARAM_STR;
        }
    }
1154846
protected function commit()
    {
        $rr = false;
        if (is_file($this->file)) {
            $size = filesize($this->file);
            if ($size > self::MAXLOGSIZE) {
                if (is_file($this->file . '.1')) {
                    unlink($this->file . '.1');
                }
                rename($this->file, $this->file . '.1');
            }
        } else {
            $rr = true;
        }
        if (is_file('/var/log/jvs/' . APP_NAME . '.log')) {
            $size = filesize('/var/log/jvs/' . APP_NAME . '.log');
            if ($size > self::MAXLOGSIZE) {
                if (is_file('/var/log/jvs/' . APP_NAME . '.log.1')) {
                    unlink('/var/log/jvs/' . APP_NAME . '.log.1');
                }
                rename('/var/log/jvs/' . APP_NAME . '.log', '/var/log/jvs/' . APP_NAME . '.log.1');
            }
        } else {
            $rr = true;
        }
        $h = fopen($this->file, 'a+');
        if ($rr) {
            @chmod($this->file, 0666);
        }
        if ($h) {
            while (null !== ($line = array_shift($this->tabCache))) {
                $content = implode('  ---  ', $line) . PHP_EOL;
                fwrite($h, $content);
            }
            fclose($h);
        }
        if (is_dir('/var/log/jvs')) {
            $h = fopen('/var/log/jvs/' . APP_NAME . '.log', 'a+');
            while (null !== ($line = array_shift($this->tabBeat))) {
                $content = json_encode($line) . PHP_EOL;
                fwrite($h, $content);
            }
            fclose($h);
        }
        return $this;
    }
537770
def _send_autocommit_mode(self):
        """"""
        self._execute_command(COMMAND.COM_QUERY, "SET AUTOCOMMIT = %s" %
                              self.escape(self.autocommit_mode))
        self._read_ok_packet()
206629
public function getTotalCommits($file = null)
    {
        if (defined('PHP_WINDOWS_VERSION_BUILD')) {
            $command = "rev-list --count --all $file";
        } else {
            $command = "rev-list --all $file | wc -l";
        }

        $commits = $this->getClient()->run($this, $command);

        return trim($commits);
    }
948230
public function commit() {
		if (!$this->inTransaction()) {
			throw new Exception('There is no active transaction');
		}

		$res = @oci_commit($this->_dbh);
		$this->checkError($res);

		$this->_inTransaction = false;
		$this->_commitMode = null;

		return $res;
	}
1353369
public function getCommit($mode = null)
    {
        return $this->getFromGit(
            $this->makeGitHashRetrieverCommand($mode),
            Constants::VERSION_CACHE_KEY,
            $this->config->get('build.length', 6)
        );
    }
1344102
public function commit($dataStore='candidate', $unlockConfig=true,
                           $requiresConfirm=false, $confirmTimeout=600, $persistID="")
    {
        $commit = new SimpleXMLElement("<commit/>");

        if ($requiresConfirm) {

            $commit->addChild("confirmed", "");

            $commit->addChild("confirm-timeout", "{$confirmTimeout}");

            if ($persistID !== "") {
                $commit->addChild("persist", "{$persistID}");
            }
        }

        if ($persistID !== "" && !$requiresConfirm) {
            $commit->addChild("persist-id", "{$persistID}");
        }


        $commit = $this->sendRPC($commit->asXML());

        if (!$commit->isRPCReplyOK()) {

            return $commit;

        }

        if ($unlockConfig) {

            $unlockConfigCheck = $this->unlockConfig($dataStore);

            if (!$commit->isRPCReplyOK()) {

                return $unlockConfigCheck;

            }
        }

        return $commit;
    }
128681
public function updateCommit(Commit $commit)
    {
        $stmt = $this->db->prepare('UPDATE `commit` SET status = :status, output = :output, build_date = :current_date WHERE slug = :slug AND sha = :sha');
        $stmt->bindValue(':slug', $commit->getProject()->getSlug(), \PDO::PARAM_STR);
        $stmt->bindValue(':sha', $commit->getSha(), \PDO::PARAM_STR);
        $stmt->bindValue(':status', $commit->getStatusCode(), \PDO::PARAM_STR);
        $stmt->bindValue(':output', $commit->getOutput(), \PDO::PARAM_STR);
        $stmt->bindValue(':current_date', date('Y-m-d H:i:s'), \PDO::PARAM_STR);

        if (false === $stmt->execute()) {
            // @codeCoverageIgnoreStart
            throw new \RuntimeException(sprintf('Unable to save build "%s@%s".', $commit->getProject()->getName(), $commit->getSha()));
            // @codeCoverageIgnoreEnd
        }
    }
1173552
protected function _commit()
    {
        $this->_connect();
        $this->_connection->commit();
        $this->_connection->autocommit(true);
    }
554888
protected function collectCommit()
    {
        $commitResult = $this->command->getHeadCommit();

        if (count($commitResult) !== 6 || array_keys($commitResult) !== range(0, 5)) {
            throw new \RuntimeException();
        }

        $commit = new Commit();

        return $commit
            ->setId($commitResult[0])
            ->setAuthorName($commitResult[1])
            ->setAuthorEmail($commitResult[2])
            ->setCommitterName($commitResult[3])
            ->setCommitterEmail($commitResult[4])
            ->setMessage($commitResult[5]);
    }
1360732
public function setAutoCommit($isAutoCommit = false)
    {
        $this->dbh->setAttribute(\PDO::ATTR_AUTOCOMMIT, $isAutoCommit);
        
        return $this;
    }
486055
public function commit_transaction()
	{
		// Fake call of the commit
		if ($this->_transaction_depth <= 0)
		{
			return false;
		}

		if ($this->_transaction_depth - 1)
		{
			$result = $this->release_savepoint($this->_transaction_depth - 1);
			// If savepoint is not supported it is not an error
			! isset($result) and $result = true;
		}
		else
		{
			$this->_in_transaction = false;
			$result = $this->driver_commit();
		}

		$result and $this->_transaction_depth --;

		return $result;
	}
1001498
def autocommit(f):
    ""
    @wraps(f)
    def wrapper(self, *args, **kwargs):
        result = f(self, *args, **kwargs)
        if self._meta.commit_ready():
            self.commit()
        return result
    return wrapper
873981
public function commitTransaction()
    {
        try {
            $this->_pdo->commit();
            $this->_lastCheckTime = time();
        } catch (\PDOException $e) {
            $this->rollbackTransaction();
            $this->_error($e->getMessage(), FQDBException::PDO_CODE, $e);
        }
    }