mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-09 08:02:48 +08:00
修正数据库驱动类的quote方法
This commit is contained in:
@@ -40,7 +40,7 @@ abstract class Driver
|
|||||||
protected $_linkID = null;
|
protected $_linkID = null;
|
||||||
// 数据库连接参数配置
|
// 数据库连接参数配置
|
||||||
protected $config = [
|
protected $config = [
|
||||||
'db_like_fields'=>'', //like字段自动替换为%%包裹
|
'db_like_fields' => '', //like字段自动替换为%%包裹
|
||||||
'type' => '', // 数据库类型
|
'type' => '', // 数据库类型
|
||||||
'hostname' => '127.0.0.1', // 服务器地址
|
'hostname' => '127.0.0.1', // 服务器地址
|
||||||
'database' => '', // 数据库名
|
'database' => '', // 数据库名
|
||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user