From 08b69a496701acfc30921e8c88a71b51fa2781ba Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Mon, 23 May 2005 07:53:50 +0000
Subject: [PATCH] Add a test for type 'long'.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3060 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ZSQLCatalog/SQLCatalog.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/product/ZSQLCatalog/SQLCatalog.py b/product/ZSQLCatalog/SQLCatalog.py
index 4053e2974b..58514b802e 100755
--- a/product/ZSQLCatalog/SQLCatalog.py
+++ b/product/ZSQLCatalog/SQLCatalog.py
@@ -1483,7 +1483,8 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base):
                 if value_item != '':
                   # we consider empty string as Non Significant
                   # also for lists
-                  if type(value_item) in (type(1), type(1.0)):
+                  if type(value_item) in (type(1), type(1.0),
+                                          type(1991643034L)):
                     query_item += ["%s = %s" % (key, value_item)]
                   else:
                     if '%' in value_item:
-- 
2.30.9