From ec430c1a72af15c9bb80441a34b60b4f3f16426a Mon Sep 17 00:00:00 2001 From: Sharath BP Date: Tue, 20 Aug 2024 09:58:41 +0000 Subject: [PATCH] Update upgrade path sql to incorporate sys.sp_reset_connection stored procedure --- .../sql/upgrades/babelfishpg_tsql--4.3.0--4.4.0.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/babelfishpg_tsql/sql/upgrades/babelfishpg_tsql--4.3.0--4.4.0.sql b/contrib/babelfishpg_tsql/sql/upgrades/babelfishpg_tsql--4.3.0--4.4.0.sql index 1f6442ae198..3824c823c52 100644 --- a/contrib/babelfishpg_tsql/sql/upgrades/babelfishpg_tsql--4.3.0--4.4.0.sql +++ b/contrib/babelfishpg_tsql/sql/upgrades/babelfishpg_tsql--4.3.0--4.4.0.sql @@ -12,6 +12,10 @@ SELECT set_config('search_path', 'sys, '||current_setting('search_path'), false) */ +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();