diff roundup/backends/indexer_rdbms.py @ 3033:f8d0fd056ac0

fix indexer searching with no valid words [SF#1086787]
author Richard Jones <richard@users.sourceforge.net>
date Mon, 03 Jan 2005 03:22:22 +0000
parents d530b68e4b42
children a7045bad20de
line wrap: on
line diff
--- a/roundup/backends/indexer_rdbms.py	Mon Jan 03 03:14:38 2005 +0000
+++ b/roundup/backends/indexer_rdbms.py	Mon Jan 03 03:22:22 2005 +0000
@@ -74,6 +74,9 @@
         If none are found return an empty dictionary
         * more rules here
         '''        
+        if not wordlist:
+            return {}
+
         l = [word.upper() for word in wordlist if 26 > len(word) > 2]
 
         a = ','.join([self.db.arg] * len(l))

Roundup Issue Tracker: http://roundup-tracker.org/