From 344acb5aba31304806ac4e171ceae23d8358eaa2 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 ++++ test/JDBC/upgrade/15_9/schedule | 1 + 2 files changed, 5 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(); diff --git a/test/JDBC/upgrade/15_9/schedule b/test/JDBC/upgrade/15_9/schedule index 602263ca069..5114b291d84 100644 --- a/test/JDBC/upgrade/15_9/schedule +++ b/test/JDBC/upgrade/15_9/schedule @@ -443,6 +443,7 @@ Test-sp_helpsrvrolemember Test-sp_helpuser Test-sp_rename Test-sp_rename-dep +Test-sp_reset_connection Test-sp_set_session_context Test-sp_set_session_context-dep TestSQLVariant