From 78bd79bb6cd4ce1ecb6d346022b4f19c41a2bae3 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 25 Feb 2015 09:34:19 +0800 Subject: [PATCH] =?UTF-8?q?fetchsql=E5=8F=82=E6=95=B0=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=94=B9=E5=AE=8Ctrue=20=E4=BE=BF=E4=BA=8E=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/model.php b/library/think/model.php index 9b123042..e84691ea 100644 --- a/library/think/model.php +++ b/library/think/model.php @@ -1294,7 +1294,7 @@ class Model { * @param boolean $fetch 是否返回sql * @return Model */ - public function fetchSql($fetch){ + public function fetchSql($fetch=true){ $this->options['fetch_sql'] = $fetch; return $this; }