Explorar el Código

Fixed:sql where condition error

Zhu Jinhui hace 6 años
padre
commit
1da590c524
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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{