Commit 1ce44588 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Reverse order of GROUP BY and ORDER BY

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12174 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8fd1ef67
......@@ -252,15 +252,14 @@ WHERE\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n
</dtml-if>\n
<dtml-if sort_on>\n
ORDER BY\n
<dtml-var sort_on>\n
</dtml-if>\n
<dtml-if group_by_expression>\n
GROUP BY\n
<dtml-var group_by_expression>\n
</dtml-if>\n
<dtml-if sort_on>\n
ORDER BY\n
<dtml-var sort_on>\n
</dtml-if>\n
]]></string> </value>
</item>
......
......@@ -294,14 +294,14 @@ WHERE \n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n
</dtml-if>\n
<dtml-if sort_on>\n
ORDER BY\n
<dtml-var sort_on>\n
</dtml-if>\n
<dtml-if group_by_expression>\n
GROUP BY\n
<dtml-var group_by_expression>\n
</dtml-if>\n
<dtml-if sort_on>\n
ORDER BY\n
<dtml-var sort_on>\n
</dtml-if>\n
<dtml-if limit_expression>\n
LIMIT <dtml-var "limit_expression">\n
<dtml-else>\n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment