From 0ba3eb1c9c9e5e8085c6a0ba1ae24ff71aa4c386 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 26 Oct 2017 15:44:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/db/Connection.php b/library/think/db/Connection.php index 56dff3e9..634057a1 100644 --- a/library/think/db/Connection.php +++ b/library/think/db/Connection.php @@ -872,7 +872,7 @@ abstract class Connection * @param bool $master 是否主库查询 * @return string */ - public function quote($str, $master = false) + public function quote($str, $master = true) { $this->initConnect($master); return $this->linkID ? $this->linkID->quote($str) : $str;