修改 数据库事务方法的注释 取消返回值

This commit is contained in:
thinkphp
2016-08-19 17:00:55 +08:00
parent 5003cd4574
commit e7e79f4c78
2 changed files with 9 additions and 9 deletions

View File

@@ -535,7 +535,7 @@ abstract class Connection
/** /**
* 启动事务 * 启动事务
* @access public * @access public
* @return bool|null * @return void
*/ */
public function startTrans() public function startTrans()
{ {
@@ -558,7 +558,7 @@ abstract class Connection
/** /**
* 用于非自动提交状态下面的查询提交 * 用于非自动提交状态下面的查询提交
* @access public * @access public
* @return boolean * @return void
* @throws PDOException * @throws PDOException
*/ */
public function commit() public function commit()
@@ -575,7 +575,7 @@ abstract class Connection
/** /**
* 事务回滚 * 事务回滚
* @access public * @access public
* @return boolean * @return void
* @throws PDOException * @throws PDOException
*/ */
public function rollback() public function rollback()

View File

@@ -238,33 +238,33 @@ class Query
/** /**
* 启动事务 * 启动事务
* @access public * @access public
* @return bool|null * @return void
*/ */
public function startTrans() public function startTrans()
{ {
return $this->connection->startTrans(); $this->connection->startTrans();
} }
/** /**
* 用于非自动提交状态下面的查询提交 * 用于非自动提交状态下面的查询提交
* @access public * @access public
* @return boolean * @return void
* @throws PDOException * @throws PDOException
*/ */
public function commit() public function commit()
{ {
return $this->connection->commit(); $this->connection->commit();
} }
/** /**
* 事务回滚 * 事务回滚
* @access public * @access public
* @return boolean * @return void
* @throws PDOException * @throws PDOException
*/ */
public function rollback() public function rollback()
{ {
return $this->connection->rollback(); $this->connection->rollback();
} }
/** /**