From: Vsevolod Stakhov Date: Mon, 15 Apr 2019 16:40:07 +0000 (+0100) Subject: [Minor] Empty reply == success in CH universe X-Git-Tag: 1.9.2~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4a59005fec39461c019256a027c1d6279636ca3f;p=thirdparty%2Frspamd.git [Minor] Empty reply == success in CH universe --- diff --git a/lualib/lua_clickhouse.lua b/lualib/lua_clickhouse.lua index 7064ac925f..99865e6ee3 100644 --- a/lualib/lua_clickhouse.lua +++ b/lualib/lua_clickhouse.lua @@ -116,8 +116,8 @@ local function parse_clickhouse_response_json(params, data) local ucl = require "ucl" if data == nil then - -- clickhouse returned no data (i.e. empty result set): exiting - return 'no data', {} + -- clickhouse returned no data (i.e. empty result set) considered valid! + return nil, {} end if data:match('DB::Exception') then