From 0a8c6794d9fc8b230c58e5863bd111c9fb61581c Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Thu, 2 Sep 2004 08:14:47 +0000
Subject: [PATCH] I remove to put it back

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1487 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../sql/erp5_mysql/z_count_results.zsql       | 40 -------------------
 1 file changed, 40 deletions(-)
 delete mode 100755 product/ERP5Catalog/sql/erp5_mysql/z_count_results.zsql

diff --git a/product/ERP5Catalog/sql/erp5_mysql/z_count_results.zsql b/product/ERP5Catalog/sql/erp5_mysql/z_count_results.zsql
deleted file mode 100755
index 52e3818a86..0000000000
--- a/product/ERP5Catalog/sql/erp5_mysql/z_count_results.zsql
+++ /dev/null
@@ -1,40 +0,0 @@
-<dtml-comment>
-title:
-connection_id:erp5_sql_connection
-max_rows:1
-max_cache:1000
-cache_time:180
-class_name:ZSQLBrain
-class_file:zsqlbrain.py
-</dtml-comment>
-<params>from_table_list
-where_expression
-select_expression
-selection_domain
-selection_report</params>
-SELECT  
-  COUNT(DISTINCT catalog.uid) <dtml-comment>We need subselect for better statistics</dtml-comment>
-<dtml-if select_expression>
-  , <dtml-var select_expression>
-</dtml-if>
-FROM
-  <dtml-var "','.join(from_table_list)">
-  <dtml-if selection_domain>, <dtml-var "selection_domain.asSqlJoinExpression()"> </dtml-if>
-  <dtml-if selection_report>, <dtml-var "selection_report.asSqlJoinExpression()"> </dtml-if>
-WHERE 
-  1 = 1 
-  <dtml-comment>We make sure here that no roles_and_users is not used</dtml-comment>
-<dtml-in from_table_list><dtml-if "_['sequence-item']=='roles_and_users'"><dtml-if select_expression><dtml-else> AND catalog.security_uid = <dtml-var sequence-item>.uid</dtml-if> <dtml-else> AND catalog.uid = <dtml-var sequence-item>.uid </dtml-if> </dtml-in>
-<dtml-if where_expression>
-  AND <dtml-var where_expression>
-</dtml-if>
-<dtml-if selection_domain>
-  AND <dtml-var "selection_domain.asSqlExpression()">
-</dtml-if>
-<dtml-if selection_report>
-  AND <dtml-var "selection_report.asSqlExpression(strict_membership=1)">
-</dtml-if>
-<dtml-if sort_on>
-ORDER BY
-  <dtml-var sort_on>
-</dtml-if>
\ No newline at end of file
-- 
2.30.9