document stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 20 Oct 2009 16:48:30 +0200
branchstable
changeset 3754 a9c641f6193b
parent 3753 310621cfed9b
child 3755 9b973e8eabb3
document
server/sources/rql2sql.py
--- a/server/sources/rql2sql.py	Tue Oct 20 16:22:52 2009 +0200
+++ b/server/sources/rql2sql.py	Tue Oct 20 16:48:30 2009 +0200
@@ -212,6 +212,7 @@
     if selectsortterms and sorts:
         sort_term_selection(sorts, selectedidx, rqlst, not needwrap and groups)
     if sorts and groups:
+        # when a query is grouped, ensure sort terms are grouped as well
         for sortterm in sorts:
             term = sortterm.term
             if not isinstance(term, Constant):