fix aggregate selecting bug.

This commit is contained in:
Taylor Otwell
2012-01-30 10:38:12 -06:00
parent 6c1e3578ad
commit ea13ddfb7f
2 changed files with 7 additions and 0 deletions

View File

@@ -44,6 +44,8 @@ class SQLServer extends Grammar {
*/
protected function selects(Query $query)
{
if ( ! is_null($query->aggregate)) return;
$select = ($query->distinct) ? 'SELECT DISTINCT ' : 'SELECT ';
// Instead of using a "LIMIT" keyword, SQL Server uses the "TOP"