From e7438c3241ceb6809cf92e32a12214799f01dc2e Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 15 Dec 2011 16:34:15 +0100 Subject: [PATCH] Disabled automatic transactions for now --- .../system/database/statement/PreparedStatement.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/system/database/statement/PreparedStatement.class.php b/wcfsetup/install/files/lib/system/database/statement/PreparedStatement.class.php index 1bc7265db7..1e036ab3a2 100644 --- a/wcfsetup/install/files/lib/system/database/statement/PreparedStatement.class.php +++ b/wcfsetup/install/files/lib/system/database/statement/PreparedStatement.class.php @@ -78,13 +78,14 @@ class PreparedStatement { /** * Executes a prepared statement within a transaction. + * CAUTION: Transactions disabled for now, use manual transaction if you like * * @param array $parameters */ public function execute(array $parameters = array()) { $this->parameters = $parameters; $this->database->incrementQueryCount(); - $this->database->beginTransaction(); + //$this->database->beginTransaction(); try { if (WCF::benchmarkIsEnabled()) Benchmark::getInstance()->start($this->query, Benchmark::TYPE_SQL_QUERY); @@ -94,10 +95,10 @@ class PreparedStatement { if (WCF::benchmarkIsEnabled()) Benchmark::getInstance()->stop(); - $this->database->commitTransaction(); + //$this->database->commitTransaction(); } catch (\PDOException $e) { - $this->database->rollBackTransaction(); + //$this->database->rollBackTransaction(); throw new DatabaseException('Could not execute prepared statement: '.$e->getMessage(), $this->database, $this); } } -- 2.20.1