Skip to content

Commit

Permalink
fixed upgrade script
Browse files Browse the repository at this point in the history
Signed-off-by: Shreya Rai <shreyaxr@amazon.com>
  • Loading branch information
shreyaxr3 committed Mar 7, 2025
1 parent 0525681 commit 8a83a84
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -711,13 +711,6 @@ CAST('GRANT OR DENY' as SYS.NVARCHAR(128)) as USAGE;

GRANT SELECT ON sys.login_token TO PUBLIC;



-- After upgrade, always run analyze for all babelfish catalogs.
CALL sys.analyze_babelfish_catalogs();
-- Reset search_path to not affect any subsequent scripts
SELECT set_config('search_path', trim(leading 'sys, ' from current_setting('search_path')), false);

CREATE OR REPLACE FUNCTION sys.loginproperty(login_name sys.sysname, property_name sys.nvarchar(128))
RETURNS sys.nvarchar(128)
AS $$
Expand Down Expand Up @@ -786,3 +779,10 @@ SELECT
WHERE FALSE;
GRANT SELECT ON sys.sql_logins TO PUBLIC;



-- After upgrade, always run analyze for all babelfish catalogs.
CALL sys.analyze_babelfish_catalogs();
-- Reset search_path to not affect any subsequent scripts
SELECT set_config('search_path', trim(leading 'sys, ' from current_setting('search_path')), false);

0 comments on commit 8a83a84

Please sign in to comment.