Permalink
Browse files

Query: GROUPBY initial set bugfix.

  • Loading branch information...
1 parent f3cb687 commit b41c2c5e34c5de8072f81f6da06b4b447b3a7693 @TomFrost committed Mar 15, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 database/Query.php
View
@@ -140,8 +140,7 @@ public function groupby($field) {
$this->assertLegal();
if (!$field || ($field = trim($field)) === '')
throw new InvalidSQLException('Invalid field name.');
- if ($this->query['GROUPBY'] != $field)
- $this->query['GROUPBY'] = $field;
+ $this->query['GROUPBY'] = $field;
}
public function having($expression, $vars=false, $logic=false) {

0 comments on commit b41c2c5

Please sign in to comment.