Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: MongoDB or Perl Data type?

by Mr. Muskrat (Abbot)
on Aug 21, 2012 at 19:22 UTC ( #988834=note: print w/ replies, xml ) Need Help??

Comment on Re: MongoDB or Perl Data type?
Re^2: MongoDB or Perl Data type?
by Alle (Novice) on Aug 22, 2012 at 02:49 UTC

    thank you,but no answer.

    the driver's author Kristina reply me with:

    'This is intentional, Perl saves all numbers as 64-bit integers on 64-bit platforms, and NumberLong is how the shell displays 64-bit numbers. See http://www.mongodb.org/display/DOCS/Overview+-+The+MongoDB+Interactive+Shell#Overview-TheMongoDBInteractiveShell-Numbers.'

    insert number using mongodb shell is ok,it just a basic number,but use perl driver MongoDB,it became NumberLong(*) ,who can help me?

      thank you,but no answer. the driver's author Kristina reply me with: 'This is intentional, Perl saves all numbers as 64-bit integers on 64-bit platforms, and NumberLong is how the shell displays 64-bit numbers. See http://www.mongodb.org/display/DOCS/Overview+-+The+MongoDB+Interactive+Shell#Overview-TheMongoDBInteractiveShell-Numbers.' insert number using mongodb shell is ok,it just a basic number,but use perl driver MongoDB,it became NumberLong(*) ,who can help me?

      I think you just got your answer, there is nothing you can do about it (short of writing your own MongoDB driver)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://988834]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2014-09-21 17:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (173 votes), past polls