diff options
-rw-r--r-- | lualib/lua_clickhouse.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lualib/lua_clickhouse.lua b/lualib/lua_clickhouse.lua index 8891a89fc..e532cd643 100644 --- a/lualib/lua_clickhouse.lua +++ b/lualib/lua_clickhouse.lua @@ -45,11 +45,12 @@ end local function clickhouse_quote(str) if str then - return str:gsub('[\'\\\n\t]', { + return str:gsub('[\'\\\n\t\r]', { ['\''] = [[\']], ['\\'] = [[\\]], ['\n'] = [[\n]], ['\t'] = [[\t]], + ['\r'] = [[\r]], }) end |