From 90c5dc79ed4e5e51a7e5c7a70cb0814c1e5fc927 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 21 May 2016 17:25:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Query=E7=B1=BB=E7=9A=84getLas?= =?UTF-8?q?tSql=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } /**