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
bb7546c9
Commit
bb7546c9
authored
Sep 23, 2019
by
antirez
Browse files
RESP3: varbatim handling for other redis-cli outputs.
parent
5e399d5d
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
bb7546c9
...
@@ -968,6 +968,7 @@ static sds cliFormatReplyRaw(redisReply *r) {
...
@@ -968,6 +968,7 @@ static sds cliFormatReplyRaw(redisReply *r) {
break;
break;
case REDIS_REPLY_STATUS:
case REDIS_REPLY_STATUS:
case REDIS_REPLY_STRING:
case REDIS_REPLY_STRING:
case REDIS_REPLY_VERB:
if (r->type == REDIS_REPLY_STATUS && config.eval_ldb) {
if (r->type == REDIS_REPLY_STATUS && config.eval_ldb) {
/* The Lua debugger replies with arrays of simple (status)
/* The Lua debugger replies with arrays of simple (status)
* strings. We colorize the output for more fun if this
* strings. We colorize the output for more fun if this
...
@@ -1021,6 +1022,7 @@ static sds cliFormatReplyCSV(redisReply *r) {
...
@@ -1021,6 +1022,7 @@ static sds cliFormatReplyCSV(redisReply *r) {
out = sdscatprintf(out,"%lld",r->integer);
out = sdscatprintf(out,"%lld",r->integer);
break;
break;
case REDIS_REPLY_STRING:
case REDIS_REPLY_STRING:
case REDIS_REPLY_VERB:
out = sdscatrepr(out,r->str,r->len);
out = sdscatrepr(out,r->str,r->len);
break;
break;
case REDIS_REPLY_NIL:
case REDIS_REPLY_NIL:
...
...
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