failure to find a field should not break entire query

https://anki.tenderapp.com/discussions/ankidesktop/656-unexpected-results-on-search-with-boolean-or-operator
This commit is contained in:
Damien Elmes 2013-04-22 22:13:29 +09:00
parent fc2c772115
commit b571a4caa8

View file

@ -429,7 +429,7 @@ where mid in %s and flds like ? escape '\\'""" % (
except sre_constants.error:
return
if not nids:
return
return "0"
return "n.id in %s" % ids2str(nids)
# Find and replace