Skip to content

How use %c in format string on redisCommand? #1069

@FAYWORD

Description

@FAYWORD

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions