aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lualib/lua_clickhouse.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_clickhouse.lua b/lualib/lua_clickhouse.lua
index 771592e57..4be2c430f 100644
--- a/lualib/lua_clickhouse.lua
+++ b/lualib/lua_clickhouse.lua
@@ -243,9 +243,9 @@ exports.insert = function (upstream, settings, params, query, rows,
http_params.no_ssl_verify = settings.no_ssl_verify
http_params.user = settings.user
http_params.password = settings.password
- http_params.body = table.concat(fun.totable(fun.map(function(row)
+ http_params.body = {table.concat(fun.totable(fun.map(function(row)
return row_to_tsv(row)
- end), rows), '\n')
+ end), rows), '\n'), '\n'}
http_params.log_obj = params.task or params.config
if not http_params.url then