From 95ad64dd297788638af02a946b3720440c96c0fc Mon Sep 17 00:00:00 2001
From: Tatuya Kamada <tatuya@nexedi.com>
Date: Tue, 23 Jun 2009 08:26:01 +0000
Subject: [PATCH] just revert the r27722 because that commit breaks backword
 compatibility.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27767 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ZSQLCatalog/SQLCatalog.py           | 1 -
 product/ZSQLCatalog/tests/testSQLCatalog.py | 2 --
 2 files changed, 3 deletions(-)

diff --git a/product/ZSQLCatalog/SQLCatalog.py b/product/ZSQLCatalog/SQLCatalog.py
index 11bb44b259..e2115ca512 100644
--- a/product/ZSQLCatalog/SQLCatalog.py
+++ b/product/ZSQLCatalog/SQLCatalog.py
@@ -2023,7 +2023,6 @@ class Catalog(Folder,
         value = dict(value)
       if ignore_empty_string and (
           value == ''
-          or value is None
           or (isinstance(value, (list, tuple)) and len(value) == 0)
           or (isinstance(value, dict) and (
             'query' not in value
diff --git a/product/ZSQLCatalog/tests/testSQLCatalog.py b/product/ZSQLCatalog/tests/testSQLCatalog.py
index e1ebe7548d..707e847c87 100644
--- a/product/ZSQLCatalog/tests/testSQLCatalog.py
+++ b/product/ZSQLCatalog/tests/testSQLCatalog.py
@@ -277,8 +277,6 @@ class TestSQLCatalog(unittest.TestCase):
                    ReferenceQuery(operator='<', date=DateTime('2008/02/02 10:10:11 UTC'))
                  , operator='and'), operator='and'),
                  {column: '2008/02/02 10:10:10 UTC'})
-    self.catalog(ReferenceQuery(operator='and', date=None),
-                 {column: None})
         
   def test_DateTimeKey(self):
     self._testDateTimeKey('date')
-- 
2.30.9