From e39da522f8a47c8f411ba4e6ec74d7fc4ab6f064 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Mon, 9 Nov 2020 12:53:23 +0200 Subject: [PATCH] [Fix] Clickhouse: escape carriage return --- lualib/lua_clickhouse.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lualib/lua_clickhouse.lua b/lualib/lua_clickhouse.lua index 8891a89fc8..e532cd643c 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 -- 2.47.3