修正事务的断线重连

This commit is contained in:
thinkphp
2017-07-27 18:02:51 +08:00
parent 332e21ab47
commit 71240f71a5

View File

@@ -642,7 +642,7 @@ abstract class Connection
return $this->close()->startTrans();
}
throw $e;
} catch (\ErrorException $e) {
} catch (\Exception $e) {
if ($this->isBreak($e)) {
return $this->close()->startTrans();
}