From 0ae38c0d16c95a270411f201a985d19b8e52fd91 Mon Sep 17 00:00:00 2001 From: Sharath BP Date: Thu, 3 Oct 2024 10:56:41 +0000 Subject: [PATCH] Fix the update script sql --- .../sql/upgrades/babelfishpg_tsql--2.10.0--2.11.0.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/babelfishpg_tsql/sql/upgrades/babelfishpg_tsql--2.10.0--2.11.0.sql b/contrib/babelfishpg_tsql/sql/upgrades/babelfishpg_tsql--2.10.0--2.11.0.sql index db54e4c90d..dbd18396b0 100644 --- a/contrib/babelfishpg_tsql/sql/upgrades/babelfishpg_tsql--2.10.0--2.11.0.sql +++ b/contrib/babelfishpg_tsql/sql/upgrades/babelfishpg_tsql--2.10.0--2.11.0.sql @@ -10,7 +10,9 @@ SELECT set_config('search_path', 'sys, '||current_setting('search_path'), false) * So make sure that any SQL statement (DDL/DML) being added here can be executed multiple times without affecting * final behaviour. */ - +CREATE OR REPLACE PROCEDURE sys.sp_reset_connection() +AS 'babelfishpg_tsql', 'sp_reset_connection_internal' LANGUAGE C; +GRANT EXECUTE ON PROCEDURE sys.sp_reset_connection() TO PUBLIC; -- After upgrade, always run analyze for all babelfish catalogs. CALL sys.analyze_babelfish_catalogs();