Skip to content

Commit

Permalink
Query: GROUPBY initial set bugfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomFrost committed Mar 15, 2012
1 parent f3cb687 commit b41c2c5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions database/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b41c2c5

Please sign in to comment.