From 9d45ea66c411b12332fae211e9d35f395ac86764 Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Sat, 20 Jan 2007 20:05:50 +0000 Subject: [PATCH] Added GROUP BY support git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12175 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_catalog/erp5_mysql_ndb/z_count_results.xml | 4 ++++ .../portal_catalog/erp5_mysql_ndb/z_search_results.xml | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_mysql_ndb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_ndb/z_count_results.xml b/product/ERP5/bootstrap/erp5_mysql_ndb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_ndb/z_count_results.xml index 1fd5d6b57e..b31a346dbc 100644 --- a/product/ERP5/bootstrap/erp5_mysql_ndb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_ndb/z_count_results.xml +++ b/product/ERP5/bootstrap/erp5_mysql_ndb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_ndb/z_count_results.xml @@ -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 diff --git a/product/ERP5/bootstrap/erp5_mysql_ndb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_ndb/z_search_results.xml b/product/ERP5/bootstrap/erp5_mysql_ndb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_ndb/z_search_results.xml index 042eef8882..9a11e900c0 100644 --- a/product/ERP5/bootstrap/erp5_mysql_ndb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_ndb/z_search_results.xml +++ b/product/ERP5/bootstrap/erp5_mysql_ndb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_ndb/z_search_results.xml @@ -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> -- 2.30.9