mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Update redis-cli.c
Code was adding '\n' (line 521) to the end of NIL values exlusively making csv output inconsistent. Removed '\n'
This commit is contained in:
parent
9802ec3c83
commit
6ec5f1f780
@ -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++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user