Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bson does not properly decode _id value #12

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

bson does not properly decode _id value #12

engrost opened this issue Mar 21, 2010 · 0 comments

Comments

@engrost
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant