Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharu Goel committed Sep 25, 2024
1 parent 098f86a commit 72ee675
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/babelfishpg_tsql/src/rolecmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -2772,8 +2772,8 @@ change_object_owner_if_db_owner()
int rc = 0;
Oid role_oid = GetUserId();

/* TSQL specific behavior */
if (sql_dialect != SQL_DIALECT_TSQL)
/* TSQL specific behavior and do not call if during CREATE EXTENSION */
if (sql_dialect != SQL_DIALECT_TSQL || creating_extension)
return;

rolname = GetUserNameFromId(role_oid, true);
Expand Down

0 comments on commit 72ee675

Please sign in to comment.