Browse Source

Add group by str 支持

Zhu Jinhui 7 years ago
parent
commit
832229223b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Driver/Base.php

+ 1 - 0
src/Driver/Base.php

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