From 275d93cc38a634208278690686fdb846c6661a5d Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 22 Jun 2016 23:44:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Connection=E7=B1=BB=E7=9A=84b?= =?UTF-8?q?atchQuery?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Connection.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/db/Connection.php b/library/think/db/Connection.php index 410c661f..73669031 100644 --- a/library/think/db/Connection.php +++ b/library/think/db/Connection.php @@ -647,9 +647,9 @@ abstract class Connection } // 提交事务 $this->commit(); - } catch (\PDOException $e) { + } catch (\Exception $e) { $this->rollback(); - return false; + throw $e; } return true; }