incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roger Binns <rog...@rogerbinns.com>
Subject Re: Silent corruption of large numbers
Date Wed, 11 Nov 2009 05:15:53 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>> 9223372036854775807
>>
>> as the value for a field in Futon.  You can't do it, Futon will
>> corrupt it and give you back
>>
>> 9223372036854776000
> 
> Isn't it just the case that there is a ceiling for representable
> integers, then?

You really should read this whole thread from the beginning :-)  Different
parts of the CouchDB ecosystem have different limits and different failure
modes.  For example CouchDB itself (Erlang) is quite happy with any
integers.  But sending 9223372036854775807 through a Javascript view server
will result in it becoming 9223372036854776000 without any error or notice.
   That is why there is "silent" and "corruption" in the thread title.

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkr6SIYACgkQmOOfHg372QSepwCgmYkj47ClB9MtRabmkisxdaPO
0TcAnAiVg4qJ3zYOup0hnG96B3mPwpes
=HwrA
-----END PGP SIGNATURE-----

Mime
View raw message