소스 검색

Add group by str 支持

Zhu Jinhui 7 년 전
부모
커밋
832229223b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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;