JSON encode start seq number in _changes requests

This ensures replication from BigCouch 0.4 works.


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

Branch: refs/heads/COUCHDB-1426
Commit: 3458eb4620c879ca786e8905697b8f0b31391205
Parents: 836cfff
Author: Filipe David Borba Manana <fdman...@apache.org>
Authored: Thu Feb 9 13:18:38 2012 +0000
Committer: Filipe David Borba Manana <fdman...@apache.org>
Committed: Thu Feb 9 13:21:26 2012 +0000

----------------------------------------------------------------------
 src/couchdb/couch_api_wrap.erl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/3458eb46/src/couchdb/couch_api_wrap.erl
----------------------------------------------------------------------
diff --git a/src/couchdb/couch_api_wrap.erl b/src/couchdb/couch_api_wrap.erl
index 0607d50..489e62b 100644
--- a/src/couchdb/couch_api_wrap.erl
+++ b/src/couchdb/couch_api_wrap.erl
@@ -315,7 +315,7 @@ changes_since(#httpdb{headers = Headers1} = HttpDb, Style, 
StartSeq,
     true ->
         [{"feed", "continuous"}]
     end ++ [
-        {"style", atom_to_list(Style)}, {"since", 
couch_util:to_list(StartSeq)},
+        {"style", atom_to_list(Style)}, {"since", ?JSON_ENCODE(StartSeq)},
         {"heartbeat", integer_to_list(HeartBeat)}
     ],
     DocIds = get_value(doc_ids, Options),

Reply via email to