From 91172ac735c34d4d974788615227088d56db4812 Mon Sep 17 00:00:00 2001 From: "Jon Allen (JJ)" Date: Tue, 4 May 2010 19:07:53 +0100 Subject: [PATCH] Fixed JSON encoding of view args --- lib/CouchDB/Client/DB.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CouchDB/Client/DB.pm b/lib/CouchDB/Client/DB.pm index 8cad816..a6fb917 100644 --- a/lib/CouchDB/Client/DB.pm +++ b/lib/CouchDB/Client/DB.pm @@ -242,7 +242,7 @@ sub fixViewArgs { for my $k (keys %args) { if ($k eq 'key' or $k eq 'startkey' or $k eq 'endkey') { if (ref($args{$k}) eq 'ARRAY' or ref($args{$k}) eq 'HASH') { - $args{$k} = $self->server->json->encode($args{$k}); + $args{$k} = $self->{client}->{json}->encode($args{$k}); } else { $args{$k} = '"' . $args{$k} . '"';