diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 8c3fe9bf..9ed1cbd8 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -185,7 +185,7 @@ class Query */ public function getLastSql() { - return $this->connection->queryStr; + return $this->connection->getLastSql(); } /**