quote value for all operators (thanks to Jordan for the fix)
authorBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Wed, 6 Jan 2010 15:01:27 +0000 (15:01 +0000)
committerBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Wed, 6 Jan 2010 15:01:27 +0000 (15:01 +0000)
PLC/Filter.py

index 3f04da9..520c6ff 100644 (file)
@@ -193,8 +193,8 @@ class Filter(Parameter, dict):
                             operator='<='
                         if modifiers[']']:
                             operator='>='
-                        else:
-                            value = str(api.db.quote(value))
+
+                        value = str(api.db.quote(value))
  
                 clause = "%s %s %s" % (field, operator, value)