-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get(doc CouchDoc, id string) didn't seem to return the couchdb document revision #13
Comments
Can you show me some code? |
Sure, last thing I tried was to explicitly set id/rev before doing the get and then do a subsequent put call which also returns me an update conflict error ... GetRev() and GetId() only returns a valid rev/id when I set both fields in DummyDocument explicitly. type DummyDocument struct {
... |
I found meanwhile what was causing the issue, problem was that I embedded the document containing id/rev into a document also defining these two fields. Sorry for the 'flurry', will close the issue. |
Hi Mirco,
when I retrieve a document using the Get() method in database.go the revision information didn't seem to be set. I use GetRev() on the returned document but it just returns an empty string. Because of this a subsequent Put call using the same document (with an empty revision) fails with a document update conflict. Do I miss here something, can you perhaps provide an example for this use case?
Thanks in advance.
The text was updated successfully, but these errors were encountered: