diff --git a/library/think/db/Driver.php b/library/think/db/Driver.php index 36a02a88..39cdb060 100644 --- a/library/think/db/Driver.php +++ b/library/think/db/Driver.php @@ -131,7 +131,7 @@ abstract class Driver Log::record($e->getMessage(), 'error'); return $this->connect($autoConnection, $linkNum); } else { - throw new PDOException($e, $this->config, $queryStr); + throw new PDOException($e, $this->config, $this->queryStr); } } }