diff options
author | antirez <antirez@gmail.com> | 2019-09-23 17:42:57 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2019-09-23 17:42:57 +0200 |
commit | bb7546c9134b21b32e2fc9a6850407179bad8a64 (patch) | |
tree | 309f6b15af12dc19556442516639546ac8e967b6 | |
parent | 5e399d5d335b2d4464621cbf6a3e2568dd779178 (diff) | |
download | redis-bb7546c9134b21b32e2fc9a6850407179bad8a64.tar.gz |
RESP3: varbatim handling for other redis-cli outputs.
-rw-r--r-- | src/redis-cli.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/redis-cli.c b/src/redis-cli.c index d08dfeb5f..9a5f81723 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -968,6 +968,7 @@ static sds cliFormatReplyRaw(redisReply *r) { break; case REDIS_REPLY_STATUS: case REDIS_REPLY_STRING: + case REDIS_REPLY_VERB: if (r->type == REDIS_REPLY_STATUS && config.eval_ldb) { /* The Lua debugger replies with arrays of simple (status) * strings. We colorize the output for more fun if this @@ -1021,6 +1022,7 @@ static sds cliFormatReplyCSV(redisReply *r) { out = sdscatprintf(out,"%lld",r->integer); break; case REDIS_REPLY_STRING: + case REDIS_REPLY_VERB: out = sdscatrepr(out,r->str,r->len); break; case REDIS_REPLY_NIL: |