Lite数据库类调整 数据库类的escapeString方法更名为quote

This commit is contained in:
thinkphp
2015-12-14 12:35:57 +08:00
parent e1c5769a30
commit 9fc6c38a4a
3 changed files with 65 additions and 37 deletions

View File

@@ -1206,7 +1206,7 @@ class Model
$parse = func_get_args();
array_shift($parse);
}
$parse = array_map([$this->db, 'escapeString'], $parse);
$parse = array_map([$this->db, 'quote'], $parse);
$where = vsprintf($where, $parse);
} elseif (is_object($where)) {
$where = get_object_vars($where);