aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_clickhouse.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lualib/lua_clickhouse.lua')
-rw-r--r--lualib/lua_clickhouse.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/lualib/lua_clickhouse.lua b/lualib/lua_clickhouse.lua
index 1aca0f719..ad5b51dce 100644
--- a/lualib/lua_clickhouse.lua
+++ b/lualib/lua_clickhouse.lua
@@ -45,10 +45,10 @@ end
local function clickhouse_quote(str)
if str then
return str:gsub('[\'\\\n\t]', {
- ['\''] = '\\\'',
- ['\\'] = '\\',
- ['\n'] = '\\n',
- ['\t'] = '\\t'
+ ['\''] = [[\']],
+ ['\\'] = [[\\]],
+ ['\n'] = [[\n]],
+ ['\t'] = [[\t]],
}):lower()
end