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 288... Zeile 288...
288
     * @throws \Throwable
288
     * @throws \Throwable
289
     */
289
     */
290
    protected function performRollBack($toLevel)
290
    protected function performRollBack($toLevel)
291
    {
291
    {
292
        if ($toLevel == 0) {
292
        if ($toLevel == 0) {
-
 
293
            $pdo = $this->getPdo();
-
 
294
 
-
 
295
            if ($pdo->inTransaction()) {
293
            $this->getPdo()->rollBack();
296
                $pdo->rollBack();
-
 
297
            }
294
        } elseif ($this->queryGrammar->supportsSavepoints()) {
298
        } elseif ($this->queryGrammar->supportsSavepoints()) {
295
            $this->getPdo()->exec(
299
            $this->getPdo()->exec(
296
                $this->queryGrammar->compileSavepointRollBack('trans'.($toLevel + 1))
300
                $this->queryGrammar->compileSavepointRollBack('trans'.($toLevel + 1))
297
            );
301
            );
298
        }
302
        }