diff --git a/lib/redis/rediswriter-utility.cpp b/lib/redis/rediswriter-utility.cpp index 62b5e35f2..77440730b 100644 --- a/lib/redis/rediswriter-utility.cpp +++ b/lib/redis/rediswriter-utility.cpp @@ -72,6 +72,7 @@ String RedisWriter::FormatCommandLine(const Value& commandLine) } else if (!commandLine.IsEmpty()) { result = commandLine; boost::algorithm::replace_all(result, "\'", "\\'"); + result = "'" + result + "'"; } return result;