RESP3: redis-cli: show the double as received from Redis.

This commit is contained in:
antirez 2018-12-06 11:44:17 +01:00
parent 045b1f6339
commit 62b2642c51

View File

@ -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