Explorar el Código

Add group by str 支持

Zhu Jinhui hace 7 años
padre
commit
832229223b
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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;