From e414fc644ad6e52d39fda7cf1c19e4f11605758c Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 26 Oct 2017 11:17:44 +0800 Subject: [PATCH] =?UTF-8?q?Connection=E7=B1=BBquote=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E8=BF=9E=E6=8E=A5=E4=BB=8E=E5=BA=93?= 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 634057a1..56dff3e9 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 = true) + public function quote($str, $master = false) { $this->initConnect($master); return $this->linkID ? $this->linkID->quote($str) : $str;