From 608886b17a42f8a69762b52b1f69170125188f74 Mon Sep 17 00:00:00 2001 From: Aapo Talvensaari Date: Mon, 6 Nov 2023 17:13:02 +0200 Subject: [PATCH] fix(db): pg store connection called without self ### Summary The PR https://github.com/Kong/kong/pull/11480 introduced a bug that calls `store_connection` without passing `self`. This fixes that. Signed-off-by: Aapo Talvensaari (cherry picked from commit 201b0a9858f4f185f7855ebf7900c52284e00138) --- kong/db/strategies/postgres/connector.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kong/db/strategies/postgres/connector.lua b/kong/db/strategies/postgres/connector.lua index fd5e9259066..703a91bb889 100644 --- a/kong/db/strategies/postgres/connector.lua +++ b/kong/db/strategies/postgres/connector.lua @@ -564,7 +564,7 @@ function _mt:query(sql, operation) -- we cannot cleanup the connection ngx.log(ngx.ERR, "failed to disconnect: ", err) end - self.store_connection(nil, operation) + self:store_connection(nil, operation) elseif is_new_conn then local keepalive_timeout = self:get_keepalive_timeout(operation)