XEdwin / jcouchdb

Automatically exported from code.google.com/p/jcouchdb
Other
0 stars 0 forks source link

createDocument doesn't provide the id #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a document using createDocument() and do not specify the id.

What is the expected output? What do you see instead?

  createDocument() should return the generated id as a string.

What version of the product are you using? On what operating system?

  couchdb 0.8.0-1, Ubuntu 8.10, jdk 1.5.0-16-3, jcouchdb 0.7.2

Original issue reported on code.google.com by btms...@gmail.com on 2 Mar 2009 at 9:21

GoogleCodeExporter commented 9 years ago
createDocument provides both the id and the revision of the newly created 
document.
It updates both fields in the given document object.

see
http://jcouchdb.googlecode.com/svn/trunk/test/org/jcouchdb/db/LocalDatabaseTestC
ase.java
, method createTestDocuments for the TestCase

Original comment by ff...@gmx.de on 5 Mar 2009 at 9:37