couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vatam...@apache.org
Subject fabric commit: updated refs/heads/3039-docid-nulls-in-all-docs-post to 94243cb
Date Fri, 17 Jun 2016 18:05:40 GMT
Repository: couchdb-fabric
Updated Branches:
  refs/heads/3039-docid-nulls-in-all-docs-post [created] 94243cb4c


Emit error row for a null doc id in POSTs to _all_docs

This is compatible behavior with CouchDB 1.x

Jira: COUCHDB-3039
BugzID: 68486


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/94243cb4
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/94243cb4
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/94243cb4

Branch: refs/heads/3039-docid-nulls-in-all-docs-post
Commit: 94243cb4c763b2833b0a852008ac015b498e2931
Parents: 17af869
Author: Nick Vatamaniuc <vatamane@gmail.com>
Authored: Fri Jun 17 14:04:39 2016 -0400
Committer: Nick Vatamaniuc <vatamane@gmail.com>
Committed: Fri Jun 17 14:04:39 2016 -0400

----------------------------------------------------------------------
 src/fabric.erl | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/94243cb4/src/fabric.erl
----------------------------------------------------------------------
diff --git a/src/fabric.erl b/src/fabric.erl
index 7e1223b..58af585 100644
--- a/src/fabric.erl
+++ b/src/fabric.erl
@@ -468,6 +468,8 @@ docid(DocId) when is_list(DocId) ->
     list_to_binary(DocId);
 docid(DocId) when is_binary(DocId) ->
     DocId;
+docid(null) ->
+    null;
 docid(DocId) ->
     erlang:error({illegal_docid, DocId}).
 


Mime
View raw message