Failed to query object with FindId if _id is int64

13 views
Skip to first unread message

qypr...@gmail.com

unread,
Jun 9, 2015, 4:24:34 AM6/9/15
to mgo-...@googlegroups.com
If _id is int64, and value is large, such as  9407036868178739, FindId will fail to query documents.
However, document can be found with java mongodb driver.

If _id is smaller, such as 940703686817873, everything is OK.

Gustavo Niemeyer

unread,
Jun 17, 2015, 9:52:09 AM6/17/15
to mgo-...@googlegroups.com

I see no issues inserting or querying that int64 value.

Here is some code that executes fine for me:


Do you have an example that fails?



--
You received this message because you are subscribed to the Google Groups "mgo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mgo-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages