Explorar o código

Update: OPT string

Jinhui Zhu %!s(int64=6) %!d(string=hai) anos
pai
achega
eb0caed627
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Driver/Base.php

+ 1 - 1
src/Driver/Base.php

@@ -768,7 +768,7 @@ class Base
             $or = join(" ". $opt . " ", $or);
         }
         if(!empty($this->where)) {
-            $this->where .= " OR (". $or . ")";
+            $this->where .= " ". $opt ." (". $or . ")";
         }
         return $this;
     }