Fixed BINARY output; was being tread as STRING.
This commit is contained in:
parent
41153eda94
commit
e514446603
|
@ -381,6 +381,8 @@ class BSON
|
||||||
NUMBER_INT
|
NUMBER_INT
|
||||||
when Numeric
|
when Numeric
|
||||||
NUMBER
|
NUMBER
|
||||||
|
when XGen::Mongo::Driver::Binary # must be before String
|
||||||
|
BINARY
|
||||||
when String
|
when String
|
||||||
# magic awful stuff - the DB requires that a where clause is sent as CODE
|
# magic awful stuff - the DB requires that a where clause is sent as CODE
|
||||||
key == "$where" ? CODE : STRING
|
key == "$where" ? CODE : STRING
|
||||||
|
@ -392,8 +394,6 @@ class BSON
|
||||||
OID
|
OID
|
||||||
when XGen::Mongo::Driver::DBRef
|
when XGen::Mongo::Driver::DBRef
|
||||||
REF
|
REF
|
||||||
when XGen::Mongo::Driver::Binary
|
|
||||||
BINARY
|
|
||||||
when true, false
|
when true, false
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
when Time
|
when Time
|
||||||
|
|
Loading…
Reference in New Issue