antirez/hiredis — Issue #75: redisCommand function parameters problem
Author: serfire
Created: 2012-01-10 08:40:56+00:00
State: open

long long int id = 1234ll;

for 3 items:

1. redisCommand(context, "SET FOO %lld", id);
2. redisCommand(context, "SET FOO:%lld:name Jason", id);
3. redisCommand(context, "SET FOO:%d:name %s", 1234, "Jason");
4. redisCommand(context, "SET FOO:%lld:name %s", id, "Jason");

1 2 and 3 are pass, but 4 failed. Is this a problem? Or how can I resolve it.