Parcourir la source

Fixed:php7下between问题

zjh il y a 3 mois
Parent
commit
04dcee4b67
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/Driver/Base.php

+ 2 - 1
src/Driver/Base.php

@@ -1180,7 +1180,7 @@ class Base
             if(stristr($index, ':between') !== false) {
                 if(is_array($val)) {
                     $val = $this->setQuote($val);
-                    $val = "'". join("' and '", $val) ."'";
+                    $val = [$index => "'". join("' and '", $val) ."'"];
                 }
             }
             if(is_array($val)) {
@@ -1202,6 +1202,7 @@ class Base
             else if($count - 1 == $index)
             {
                 $tmpWhere[$index] = $val;
+                print_r($tmpWhere);
                 $slices[] = array_values($tmpWhere);
                 $tmpWhere = array();
             }