Skip to content

Commit

Permalink
add default value
Browse files Browse the repository at this point in the history
  • Loading branch information
millken chen committed Oct 24, 2018
1 parent 98cee81 commit fdd6d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ public function sql()
return $this->lastsql;
}

private function aggregate(string $type, string $table, string $field, array $where)
private function aggregate(string $type, string $table, string $field = '*', array $where = [])
{
$field = $field == '*' ? '*' : $this->columnQuote($field);
$query = 'SELECT '.strtoupper($type).'('.$field.') FROM '
Expand Down

0 comments on commit fdd6d5d

Please sign in to comment.