bson does not properly decode _id value #12

Open
engrost opened this Issue Mar 21, 2010 · 0 comments

Projects

None yet

1 participant

@engrost
engrost commented Mar 21, 2010

from shell:

19> emongo:find(db_pool,"users",[{"_id",{oid,"4ba503889a221a453f46e02e"}}]). [[{<<"_id">>,
{oid,<<75,165,3,136,154,34,26,69,63,70,224,46>>}},
{<<"date_added">>,{2010,3,0}},
{<<"name">>,<<"Olo">>},
{<<"number">>,<<"235626">>},
{<<"password">>,<<"AAA">>}]]

"_id" should be decoded to:

24> emongo:dec2hex(<<75,165,3,136,154,34,26,69,63,70,224,46>>).
<<"4ba503889a221a453f46e02e">>

at very least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment