Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
cdc0e9bf
Commit
cdc0e9bf
authored
Feb 02, 2015
by
Salvatore Sanfilippo
Browse files
Merge pull request #2318 from mattcollier/patch-1
Fix redis-cli CSV NIL output
parents
6502947a
6ec5f1f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
cdc0e9bf
...
@@ -518,7 +518,7 @@ static sds cliFormatReplyCSV(redisReply *r) {
...
@@ -518,7 +518,7 @@ static sds cliFormatReplyCSV(redisReply *r) {
out
=
sdscatrepr
(
out
,
r
->
str
,
r
->
len
);
out
=
sdscatrepr
(
out
,
r
->
str
,
r
->
len
);
break
;
break
;
case
REDIS_REPLY_NIL
:
case
REDIS_REPLY_NIL
:
out
=
sdscat
(
out
,
"NIL
\n
"
);
out
=
sdscat
(
out
,
"NIL"
);
break
;
break
;
case
REDIS_REPLY_ARRAY
:
case
REDIS_REPLY_ARRAY
:
for
(
i
=
0
;
i
<
r
->
elements
;
i
++
)
{
for
(
i
=
0
;
i
<
r
->
elements
;
i
++
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment