projects
/
perl-Redis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6255eee
)
use __read_multi_bulk for keys command; mget/mset test number fixed
rns
author
rns
<rns123@ukr.net>
Wed, 18 Aug 2010 13:14:42 +0000
(16:14 +0300)
committer
rns
<rns123@ukr.net>
Wed, 18 Aug 2010 13:14:42 +0000
(16:14 +0300)
lib/Redis.pm
patch
|
blob
|
history
t/02-Redis-multibulk-mget-mset.t
patch
|
blob
|
history
diff --git
a/lib/Redis.pm
b/lib/Redis.pm
index
09db12b
..
6b1a457
100644
(file)
--- a/
lib/Redis.pm
+++ b/
lib/Redis.pm
@@
-144,9
+144,7
@@
sub AUTOLOAD {
}
return $hash;
} elsif ( $command eq 'keys' ) {
- my $keys = $self->__read_bulk($result);
- return split(/\s/, $keys) if $keys;
- return;
+ return $self->__read_multi_bulk($result);
}
if ( $type eq '-' ) {
diff --git
a/t/02-Redis-multibulk-mget-mset.t
b/t/02-Redis-multibulk-mget-mset.t
index
e208a87
..
4bca8c7
100644
(file)
--- a/
t/02-Redis-multibulk-mget-mset.t
+++ b/
t/02-Redis-multibulk-mget-mset.t
@@
-3,7
+3,7
@@
use warnings;
use strict;
-use Test::More tests =>
2
;
+use Test::More tests =>
5
;
use lib 'lib';