소스 검색

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{