Commit 0a1bac62 authored by Jean-Paul Smets's avatar Jean-Paul Smets

2007-01-09 JPS - Implementation of group by

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11957 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a6bdb3d1
...@@ -38,6 +38,12 @@ ...@@ -38,6 +38,12 @@
<dictionary/> <dictionary/>
</value> </value>
</item> </item>
<item>
<key> <string>group_by_expression</string> </key>
<value>
<dictionary/>
</value>
</item>
<item> <item>
<key> <string>select_expression</string> </key> <key> <string>select_expression</string> </key>
<value> <value>
...@@ -69,11 +75,12 @@ ...@@ -69,11 +75,12 @@
<key> <string>_keys</string> </key> <key> <string>_keys</string> </key>
<value> <value>
<list> <list>
<string>from_table_list</string> <string>from_table_list</string>
<string>where_expression</string> <string>where_expression</string>
<string>select_expression</string> <string>select_expression</string>
<string>selection_domain</string> <string>group_by_expression</string>
<string>selection_report</string> <string>selection_domain</string>
<string>selection_report</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -90,10 +97,11 @@ ...@@ -90,10 +97,11 @@
</item> </item>
<item> <item>
<key> <string>arguments_src</string> </key> <key> <string>arguments_src</string> </key>
<value> <string>from_table_list\r\n <value> <string>from_table_list\n
where_expression\r\n where_expression\n
select_expression\r\n select_expression\n
selection_domain\r\n group_by_expression\n
selection_domain\n
selection_report</string> </value> selection_report</string> </value>
</item> </item>
<item> <item>
...@@ -170,6 +178,10 @@ WHERE\n ...@@ -170,6 +178,10 @@ WHERE\n
ORDER BY\n ORDER BY\n
<dtml-var sort_on>\n <dtml-var sort_on>\n
</dtml-if>\n </dtml-if>\n
<dtml-if group_by_expression>\n
GROUP BY\n
<dtml-var group_by_expression>\n
</dtml-if>\n
]]></string> </value> ]]></string> </value>
...@@ -244,6 +256,10 @@ WHERE\n ...@@ -244,6 +256,10 @@ WHERE\n
ORDER BY\n ORDER BY\n
<dtml-var sort_on>\n <dtml-var sort_on>\n
</dtml-if>\n </dtml-if>\n
<dtml-if group_by_expression>\n
GROUP BY\n
<dtml-var group_by_expression>\n
</dtml-if>\n
]]></string> </value> ]]></string> </value>
......
...@@ -43,6 +43,12 @@ ...@@ -43,6 +43,12 @@
</dictionary> </dictionary>
</value> </value>
</item> </item>
<item>
<key> <string>group_by_expression</string> </key>
<value>
<dictionary/>
</value>
</item>
<item> <item>
<key> <string>limit_expression</string> </key> <key> <string>limit_expression</string> </key>
<value> <value>
...@@ -98,15 +104,16 @@ ...@@ -98,15 +104,16 @@
<key> <string>_keys</string> </key> <key> <string>_keys</string> </key>
<value> <value>
<list> <list>
<string>selection</string> <string>selection</string>
<string>selection_domain</string> <string>selection_domain</string>
<string>selection_report</string> <string>selection_report</string>
<string>where_expression</string> <string>where_expression</string>
<string>select_expression</string> <string>select_expression</string>
<string>from_table_list</string> <string>group_by_expression</string>
<string>sort_on</string> <string>from_table_list</string>
<string>limit_expression</string> <string>sort_on</string>
<string>search_mode</string> <string>limit_expression</string>
<string>search_mode</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -123,14 +130,15 @@ ...@@ -123,14 +130,15 @@
</item> </item>
<item> <item>
<key> <string>arguments_src</string> </key> <key> <string>arguments_src</string> </key>
<value> <string>selection\r\n <value> <string>selection\n
selection_domain\r\n selection_domain\n
selection_report\r\n selection_report\n
where_expression\r\n where_expression\n
select_expression\r\n select_expression\n
from_table_list:list\r\n group_by_expression\n
sort_on\r\n from_table_list:list\n
limit_expression\r\n sort_on\n
limit_expression\n
search_mode</string> </value> search_mode</string> </value>
</item> </item>
<item> <item>
...@@ -207,6 +215,10 @@ WHERE \n ...@@ -207,6 +215,10 @@ WHERE \n
ORDER BY\n ORDER BY\n
<dtml-var sort_on>\n <dtml-var sort_on>\n
</dtml-if>\n </dtml-if>\n
<dtml-if group_by_expression>\n
GROUP BY\n
<dtml-var group_by_expression>\n
</dtml-if>\n
<dtml-if limit_expression>\n <dtml-if limit_expression>\n
LIMIT <dtml-var "limit_expression">\n LIMIT <dtml-var "limit_expression">\n
<dtml-else>\n <dtml-else>\n
...@@ -286,6 +298,10 @@ WHERE \n ...@@ -286,6 +298,10 @@ WHERE \n
ORDER BY\n ORDER BY\n
<dtml-var sort_on>\n <dtml-var sort_on>\n
</dtml-if>\n </dtml-if>\n
<dtml-if group_by_expression>\n
GROUP BY\n
<dtml-var group_by_expression>\n
</dtml-if>\n
<dtml-if limit_expression>\n <dtml-if limit_expression>\n
LIMIT <dtml-var "limit_expression">\n LIMIT <dtml-var "limit_expression">\n
<dtml-else>\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