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(); } /**