This commit is contained in:
thinkphp
2017-10-26 15:44:11 +08:00
parent e414fc644a
commit 0ba3eb1c9c

View File

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