Browse Source

Fixed: group by bugs

Jinhui Zhu 5 years ago
parent
commit
bff2b1ec60
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Driver/Base.php

+ 1 - 1
src/Driver/Base.php

@@ -557,7 +557,7 @@ class Base
     {
     {
         $this->groupBy = null;
         $this->groupBy = null;
         if (!empty($fields)) {
         if (!empty($fields)) {
-            $fileds = is_array($fields) ? join(', ', $fields) : $fields;
+            $fields = is_array($fields) ? join(', ', $fields) : $fields;
             $this->groupBy = sprintf($this->_query['GROUP'], $fields);
             $this->groupBy = sprintf($this->_query['GROUP'], $fields);
         }
         }
         return $this;
         return $this;