改进Query类group方法的解析

This commit is contained in:
thinkphp
2017-09-07 11:45:04 +08:00
parent 56bce822f3
commit 4882617edb

View File

@@ -579,7 +579,7 @@ abstract class Builder
*/
protected function parseGroup($group)
{
return !empty($group) ? ' GROUP BY ' . $group : '';
return !empty($group) ? ' GROUP BY ' . $this->parseKey($group) : '';
}
/**