From c04808c938e2a3deb0e9b43e3ae0af915d1d561d Mon Sep 17 00:00:00 2001 From: Simon Hauser Date: Fri, 4 Aug 2023 16:12:01 +0200 Subject: fix: redis schema parsing --- lualib/lua_util.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lualib/lua_util.lua') diff --git a/lualib/lua_util.lua b/lualib/lua_util.lua index c2bdf40a9..289e2ed3a 100644 --- a/lualib/lua_util.lua +++ b/lualib/lua_util.lua @@ -618,6 +618,19 @@ end exports.table_cmp = table_cmp +--[[[ +-- @function lua_util.table_merge(t1, t2) +-- Merge two tables +--]] +local function table_merge(t1, t2) + for k, v in pairs(t2) do + t1[k] = v + end + return t1 +end + +exports.table_merge = table_merge + --[[[ -- @function lua_util.table_cmp(task, name, value, stop_chars) -- Performs header folding -- cgit v1.2.3