db_pdo::commit PHP Method

commit() public method

用于非自动提交状态下面的查询提交
public commit ( ) : boolen
return boolen
    public function commit()
    {
        if ($this->transTimes > 0) {
            $result = $this->_linkID->commit();
            $this->transTimes = 0;
            if (!$result) {
                $this->error();
                return false;
            }
        }
        return true;
    }