Ver Fonte

Fixed:sql where condition error

Zhu Jinhui há 6 anos atrás
pai
commit
1da590c524
1 ficheiros alterados com 1 adições e 0 exclusões
  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{