Commits

Anonymous committed 90692e3

Fix exists lookup for tokyo cabinet (not using regexp matching empty string, which is platform sensitive: doesn't work on Mac OS)

  • Participants
  • Parent commits 0b4e216

Comments (0)

Files changed (1)

File doqu/ext/tokyo_cabinet/lookups.py

     'contains_any': lambda k,v,p: (k, tc.TDBQCSTROR, p(v)),
     'endswith':     lambda k,v,p: (k, tc.TDBQCSTREW, p(v)),
     'equals':       str_or_num('equals'),
-    'exists':       lambda k,v,p: (k, tc.TDBQCSTRRX, ''),
+    'exists':       lambda k,v,p: (k, tc.TDBQCSTRBW, ''),
     'gt':           lambda k,v,p: (k, tc.TDBQCNUMGT, p(v)),
     'gte':          lambda k,v,p: (k, tc.TDBQCNUMGE, p(v)),
     'in':           str_or_num('in'),