From db1f8a81a4ca02667f4a6c0a5b702e5e0641e7d2 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Wed, 3 Sep 2014 06:16:41 +0200 Subject: [PATCH] Transactions not required here either, actually --- code/web/private_php/ams/autoload/dblayer.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/code/web/private_php/ams/autoload/dblayer.php b/code/web/private_php/ams/autoload/dblayer.php index 40f8cb17e..0df7d75b7 100644 --- a/code/web/private_php/ams/autoload/dblayer.php +++ b/code/web/private_php/ams/autoload/dblayer.php @@ -130,14 +130,10 @@ class DBLayer { foreach ($data as $key => $value) { $sth->bindValue( ":$key", $value ); } - $this->PDO->beginTransaction(); $sth->execute(); $lastId = $this->PDO->lastInsertId(); - $this->PDO->commit(); } catch (Exception $e) { - // for rolling back the changes during transaction - $this->PDO->rollBack(); throw $e; // new Exception( "error in inseting" ); } return $lastId;