-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How use %c in format string on redisCommand? #1069
Comments
I found another problem (* - d'nt work with format string) |
Hi, thanks for the report. I'm honestly not sure if we want/need to add the |
Well, I needed to insert only part of the string (up to a certain character). Without this functionality, you will need to compose a new string |
If i use %c in format string then command return NULL reply.
Example command (SET Test:1 a):
reply = redisCommand(conn,"SET Test:1 %s", "a"); // this work (Command OK)
reply = redisCommand(conn,"SET Test:1 a"); // this work (Command OK)
reply = redisCommand(conn,"SET Test:1 %c", 'a'); // this d'nt work (reply == NULL)
reply = redisCommand(conn,"SET T%cst:1 a", 'e'); // this d'nt work (reply == NULL)
This problem also exists in redisAppendCommand, redisvAppendCommand and etc
The text was updated successfully, but these errors were encountered: