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

are the apis wrong? they don't insert when space is in the name

1 reply [Last post]
  • Login or register to post comments
Thu, 09/22/2011 - 06:48
davos1
Offline
Joined: 09/22/2011
Groups: None

If I use couch one.com I can have a document with an space in the ID. as example "this id" and set any value there.

but we are using now the couchbase server 2.0 and we have tried with the PHP api, the python couchbased memcache, memcache, also with Ruby.
in all the cases set a new variable fails when the set has an space inside its value:

for example this fails:

$mc->set("this name",1);
var_dump($mc->get("this name"));

maybe I am getting wrong here, or it is a limit in the couchbase server....

how to insert an id with an space in the name in the couchbase server 2.0 that contains an space in its id?

thank you

Top
  • Login or register to post comments
Mon, 09/26/2011 - 12:09
mikew
Offline
Joined: 03/14/2011
Groups:

memcached doesn't allow spaces, new lines, or carriage returns as key names. In the case of Couchbase the id is actually the key that is placed into memcached so you cannot do this. I would recommend that you just replace all spaces with and '_'.

Hope that helps.

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