Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 621
Zeile 1... Zeile 1...
1
<?php
1
<?php
Zeile 2... Zeile 2...
2
 
2
 
Zeile -... Zeile 3...
-
 
3
namespace Doctrine\DBAL\Driver\PDO;
3
namespace Doctrine\DBAL\Driver\PDO;
4
 
4
 
5
use Doctrine\DBAL\Driver\PDO\PDOException as DriverPDOException;
5
use Doctrine\DBAL\Driver\Result as ResultInterface;
6
use Doctrine\DBAL\Driver\Result as ResultInterface;
6
use Doctrine\DBAL\Driver\ServerInfoAwareConnection;
7
use Doctrine\DBAL\Driver\ServerInfoAwareConnection;
7
use Doctrine\DBAL\Driver\Statement as StatementInterface;
8
use Doctrine\DBAL\Driver\Statement as StatementInterface;
Zeile 78... Zeile 79...
78
    /**
79
    /**
79
     * {@inheritdoc}
80
     * {@inheritdoc}
80
     */
81
     */
81
    public function quote($value, $type = ParameterType::STRING)
82
    public function quote($value, $type = ParameterType::STRING)
82
    {
83
    {
83
        return $this->connection->quote($value, $type);
84
        return $this->connection->quote($value, ParameterTypeMap::convertParamType($type));
84
    }
85
    }
Zeile 85... Zeile 86...
85
 
86
 
86
    /**
87
    /**
87
     * {@inheritdoc}
88
     * {@inheritdoc}
Zeile 105... Zeile 106...
105
        }
106
        }
106
    }
107
    }
Zeile 107... Zeile 108...
107
 
108
 
108
    public function beginTransaction(): bool
109
    public function beginTransaction(): bool
-
 
110
    {
109
    {
111
        try {
-
 
112
            return $this->connection->beginTransaction();
-
 
113
        } catch (PDOException $exception) {
-
 
114
            throw DriverPDOException::new($exception);
110
        return $this->connection->beginTransaction();
115
        }
Zeile 111... Zeile 116...
111
    }
116
    }
112
 
117
 
-
 
118
    public function commit(): bool
113
    public function commit(): bool
119
    {
-
 
120
        try {
-
 
121
            return $this->connection->commit();
-
 
122
        } catch (PDOException $exception) {
114
    {
123
            throw DriverPDOException::new($exception);
Zeile 115... Zeile 124...
115
        return $this->connection->commit();
124
        }
116
    }
125
    }
-
 
126
 
117
 
127
    public function rollBack(): bool
-
 
128
    {
-
 
129
        try {
-
 
130
            return $this->connection->rollBack();
118
    public function rollBack(): bool
131
        } catch (PDOException $exception) {
Zeile 119... Zeile 132...
119
    {
132
            throw DriverPDOException::new($exception);
120
        return $this->connection->rollBack();
133
        }
121
    }
134
    }