变更
This commit is contained in:
+4
-3
@@ -22,6 +22,7 @@ use Kiri\Abstracts\Config;
|
|||||||
use Kiri\Di\ContainerInterface;
|
use Kiri\Di\ContainerInterface;
|
||||||
use Kiri\Di\Context;
|
use Kiri\Di\Context;
|
||||||
use Kiri\Events\EventProvider;
|
use Kiri\Events\EventProvider;
|
||||||
|
use Kiri\Exception\ConfigException;
|
||||||
use Kiri\Exception\NotFindClassException;
|
use Kiri\Exception\NotFindClassException;
|
||||||
use Kiri\Pool\Connection as PoolConnection;
|
use Kiri\Pool\Connection as PoolConnection;
|
||||||
use Kiri\Server\Events\OnWorkerExit;
|
use Kiri\Server\Events\OnWorkerExit;
|
||||||
@@ -142,8 +143,8 @@ class Connection extends Component
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return PDO
|
* @return Mysql\PDO
|
||||||
* @throws Exception
|
* @throws ConfigException
|
||||||
*/
|
*/
|
||||||
public function getMasterClient(): Mysql\PDO
|
public function getMasterClient(): Mysql\PDO
|
||||||
{
|
{
|
||||||
@@ -251,7 +252,7 @@ class Connection extends Component
|
|||||||
* 回收链接
|
* 回收链接
|
||||||
* @throws
|
* @throws
|
||||||
*/
|
*/
|
||||||
public function release(PDO $PDO)
|
public function release(Mysql\PDO $PDO)
|
||||||
{
|
{
|
||||||
if ($PDO->inTransaction()) {
|
if ($PDO->inTransaction()) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user