浏览代码

Fixed:sql where condition error

Zhu Jinhui 6 年之前
父节点
当前提交
1da590c524
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/Driver/Base.php

+ 1 - 0
src/Driver/Base.php

@@ -703,6 +703,7 @@ class Base
         if (!empty($where)) {
             $whereArray = array();
             foreach ($where AS $k => $v) {
+                $v = $this->setQuote($v);
                 if(stristr($k, '.')) {
                     $whereArray[] = " {$k} = '{$v}'";
                 }else{