connection类quote方法默认读取主库

This commit is contained in:
thinkphp
2016-09-12 13:50:54 +08:00
parent 8edc56d9f5
commit faa3e8aabc

View File

@@ -736,7 +736,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;