fons / cl-mongo

lisp interface to mongo db
fons.github.com/cl-mongo
MIT License
142 stars 31 forks source link

bson-encode for bson-binary objects has infinite recursion #7

Closed mbancroft closed 11 years ago

mbancroft commented 12 years ago

I believe you want to call bson-encode on the contents of the blob, like so:

(bson-encode key (data value) :array array :type type :encoder #'encode-value)

fons commented 12 years ago

thanks for this.. I'll fix over the weekend !!

fons commented 11 years ago

(get-element "hello" (bson-decode 23 0 1 (bson-encode "hello" (bson-binary +bson-binary-generic+ (string-to-octets "123abc"))))) seems to be working !