couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r963732 - /couchdb/branches/1.0.x/src/couchdb/couch_doc.erl
Date Tue, 13 Jul 2010 14:30:43 GMT
Author: jchris
Date: Tue Jul 13 14:30:42 2010
New Revision: 963732

URL: http://svn.apache.org/viewvc?rev=963732&view=rev
Log:
show the complete document body even when the document is deleted (Couch lets you store data
with a delete but did not render it to JSON)

Modified:
    couchdb/branches/1.0.x/src/couchdb/couch_doc.erl

Modified: couchdb/branches/1.0.x/src/couchdb/couch_doc.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/1.0.x/src/couchdb/couch_doc.erl?rev=963732&r1=963731&r2=963732&view=diff
==============================================================================
--- couchdb/branches/1.0.x/src/couchdb/couch_doc.erl (original)
+++ couchdb/branches/1.0.x/src/couchdb/couch_doc.erl Tue Jul 13 14:30:42 2010
@@ -27,8 +27,8 @@ to_json_rev(0, []) ->
 to_json_rev(Start, [FirstRevId|_]) ->
     [{<<"_rev">>, ?l2b([integer_to_list(Start),"-",revid_to_str(FirstRevId)])}].
 
-to_json_body(true, _Body) ->
-    [{<<"_deleted">>, true}];
+to_json_body(true, {Body}) ->
+    Body ++ [{<<"_deleted">>, true}];
 to_json_body(false, {Body}) ->
     Body.
 



Mime
View raw message