-
Type: Improvement
-
Resolution: Won't Fix
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Ubuntu 10.04, Mongodb 1.4.3, PyMongo 1.7
When using custom types via the instructions provided: http://api.mongodb.org/python/1.7%2B/examples/custom_type.html#binary-encoding , trying to find documents via db.table.find_one(
{'column':value}) where `value` is the Python value that has a proper custom type mapping, returns None. This also happens when using the '$gt', '$lt', etc., comparisons.
Manually transforming `value` to the proper pymongo.binary.Binary() instance works around the issue, but .find() and .find_one() should transform the provided spec automatically.
I don't know if the same issue exists for manual/custom encodings, but I suspect so.