Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

SEVERE BUG: 2.0 Beta, 64bit long data is wrong on Windows Server 2008 R2!!!

2 replies [Last post]
  • Login or register to post comments
Mon, 10/08/2012 - 12:19
ezrover
Offline
Joined: 09/19/2012
Groups: None

From the .Net SDK or AdminUI try to change the UserId field manually to set it equal to the same number as the UesrName and it keep rounding it up!!!

{
  "CreatedTime": "/Date(1349565534259-0700)/",
  "UserId": 634851623342592800,
  "UserName": "634851623342592724",
  "recType": "fbUser"
}

Top
  • Login or register to post comments
Mon, 10/08/2012 - 13:39
mikew
Offline
Joined: 03/14/2011
Groups:

I have created an issue for this problem here:

http://www.couchbase.com/issues/browse/MB-6842

Top
  • Login or register to post comments
Thu, 10/11/2012 - 18:21
mikew
Offline
Joined: 03/14/2011
Groups:

I just wanted to follow up here for anyone else who might read this post.

The reason for this error is that most javascript engines only support numbers up to 2^53. We have added this to our docs.

You're hitting a limit of most (if not all) JavaScript engines. They can't represent number larger than 2 ** 53. 
See the following in node (V8) and Spidermonkey: 
 
fdmanana 23:43:24 ~ > node 
> 634851623223408516 
634851623223408500 
> fdmanana 23:43:36 ~ > 
fdmanana 23:43:37 ~ > js 
> 634851623223408516 
634851623223408500 
> fdmanana 23:43:41 ~ > 
fdmanana 23:43:42 ~ > 
 
 
Anyone who wants to store such large numbers, will have to store them as strings.

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker