Commits

VooDooNOFX committed a4c3d4f

Default search should be case insensitive. Perhaps this can be made into a flag?

  • Participants
  • Parent commits 4c3a371

Comments (0)

Files changed (1)

File tw2/jqplugins/jqgrid/widgets/sqla.py

         elif oper == 'ge':
             return col >= string
         elif oper == 'bw':
-            return col.like(string + '%')
+            return col.ilike(string + '%')
         elif oper == 'ew':
-            return col.like('%' + string)
+            return col.ilike('%' + string)
         elif oper == 'cn':
-            return col.like('%' + string + '%')
+            return col.ilike('%' + string + '%')
 
     @classmethod
     def _searched_query(cls, query, kw):