修正数据库驱动类的quote方法

This commit is contained in:
thinkphp
2015-12-15 20:08:53 +08:00
parent 6264330ffb
commit ac202882af

View File

@@ -1128,6 +1128,7 @@ abstract class Driver
*/ */
public function quote($str) public function quote($str)
{ {
$this->initConnect();
return $this->_linkID ? $this->_linkID->quote($str) : $str; return $this->_linkID ? $this->_linkID->quote($str) : $str;
} }