mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 00:50:50 +00:00
RESP3: redis-cli: show the double as received from Redis.
This commit is contained in:
parent
045b1f6339
commit
62b2642c51
@ -811,7 +811,7 @@ static sds cliFormatReplyTTY(redisReply *r, char *prefix) {
|
||||
out = sdscatprintf(out,"(integer) %lld\n",r->integer);
|
||||
break;
|
||||
case REDIS_REPLY_DOUBLE:
|
||||
out = sdscatprintf(out,"(double) %.17g\n",r->dval);
|
||||
out = sdscatprintf(out,"(double) %s\n",r->str);
|
||||
break;
|
||||
case REDIS_REPLY_STRING:
|
||||
/* If you are producing output for the standard output we want
|
||||
|
Loading…
x
Reference in New Issue
Block a user