From e7e79f4c78dad19702cd20a707f2108f6c1a52a5 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 19 Aug 2016 17:00:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E4=BA=8B=E5=8A=A1=E6=96=B9=E6=B3=95=E7=9A=84=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=20=E5=8F=96=E6=B6=88=E8=BF=94=E5=9B=9E=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Connection.php | 6 +++--- library/think/db/Query.php | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/library/think/db/Connection.php b/library/think/db/Connection.php index dea797d2..6d627bcf 100644 --- a/library/think/db/Connection.php +++ b/library/think/db/Connection.php @@ -535,7 +535,7 @@ abstract class Connection /** * 启动事务 * @access public - * @return bool|null + * @return void */ public function startTrans() { @@ -558,7 +558,7 @@ abstract class Connection /** * 用于非自动提交状态下面的查询提交 * @access public - * @return boolean + * @return void * @throws PDOException */ public function commit() @@ -575,7 +575,7 @@ abstract class Connection /** * 事务回滚 * @access public - * @return boolean + * @return void * @throws PDOException */ public function rollback() diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 0ebea9ad..5b30a04b 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -238,33 +238,33 @@ class Query /** * 启动事务 * @access public - * @return bool|null + * @return void */ public function startTrans() { - return $this->connection->startTrans(); + $this->connection->startTrans(); } /** * 用于非自动提交状态下面的查询提交 * @access public - * @return boolean + * @return void * @throws PDOException */ public function commit() { - return $this->connection->commit(); + $this->connection->commit(); } /** * 事务回滚 * @access public - * @return boolean + * @return void * @throws PDOException */ public function rollback() { - return $this->connection->rollback(); + $this->connection->rollback(); } /**