Skip to content

Commit

Permalink
Commented out ORDER BY until GROUP BY is added
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Kubb committed Jun 24, 2008
1 parent 47b8a82 commit ef27ad5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ def aggregate_read_statement(aggregate_function, property, query)
statement << " FROM #{quote_table_name(query.model.storage_name(query.repository.name))}"
statement << links_statement(query) if query.links.any?
statement << " WHERE #{conditions_statement(query)}" if query.conditions.any?
statement << " ORDER BY #{order_statement(query)}" if query.order.any?

# TODO: when GROUP BY support added, uncomment this, and (by default) have
# it sort on the non-aggregate fields being SELECTed
#statement << " ORDER BY #{order_statement(query)}" if query.order.any?

statement << " LIMIT #{quote_column_value(query.limit)}" if query.limit
statement << " OFFSET #{quote_column_value(query.offset)}" if query.offset && query.offset > 0
statement
Expand Down

0 comments on commit ef27ad5

Please sign in to comment.