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
62b2642c
Commit
62b2642c
authored
Dec 06, 2018
by
antirez
Browse files
RESP3: redis-cli: show the double as received from Redis.
parent
045b1f63
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
62b2642c
...
@@ -811,7 +811,7 @@ static sds cliFormatReplyTTY(redisReply *r, char *prefix) {
...
@@ -811,7 +811,7 @@ static sds cliFormatReplyTTY(redisReply *r, char *prefix) {
out = sdscatprintf(out,"(integer) %lld\n",r->integer);
out = sdscatprintf(out,"(integer) %lld\n",r->integer);
break;
break;
case REDIS_REPLY_DOUBLE:
case REDIS_REPLY_DOUBLE:
out = sdscatprintf(out,"(double) %
.17g
\n",r->
dval
);
out = sdscatprintf(out,"(double) %
s
\n",r->
str
);
break;
break;
case REDIS_REPLY_STRING:
case REDIS_REPLY_STRING:
/* If you are producing output for the standard output we want
/* If you are producing output for the standard output we want
...
...
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