Fixed BINARY output; was being tread as STRING.

This commit is contained in:
Jim Menard 2009-01-12 10:44:57 -05:00
parent 41153eda94
commit e514446603
1 changed files with 2 additions and 2 deletions

View File

@ -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