Kaynağa Gözat

Fixed:php7下between问题

zjh 3 ay önce
ebeveyn
işleme
04dcee4b67
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  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();
             }