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; }