Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 romping around the Monastery: (14)
As of 2015-07-07 13:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls