diff --git a/library/think/db/Connection.php b/library/think/db/Connection.php index 2c2b9a8c..dee87494 100644 --- a/library/think/db/Connection.php +++ b/library/think/db/Connection.php @@ -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(); }