Commit 9d45ea66 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added GROUP BY support

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12175 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1ce44588
......@@ -166,6 +166,10 @@ WHERE\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\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
......
......@@ -203,6 +203,10 @@ WHERE \n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\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
......@@ -211,8 +215,6 @@ ORDER BY\n
LIMIT <dtml-var "limit_expression">\n
<dtml-else>\n
LIMIT 1000\n
</dtml-if>\n
]]></string> </value>
</item>
......
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