-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This commit addresses the following issues in the implementation of supporting adding of multiple users to db_owner role: - Name clash around internal db_owner role: We will now check if the internal role we are about to create already exists or not, if it does, we throw an error. Conversely, if a server/database principal exists with the same name as the internal role we are about to create, we will throw an appropriate error. - Extra rows for sp_helpuser: Added a check for RoleName column to only contain T-SQL roles. - Unable to make db_owner role schema owner: We will not change owner of schema if it's authorization lies with db_owner role. - Adding/dropping of valid users to db_owner role again should not throw error: During addition, if user is already member of db_owner, we will omit creating internal role. During drop, if user is not member of db_owner role, we will omit dropping the internal role. Task: BABEL-4899, BABEL-5491, BABEL-5502 Signed-off-by: Sharu Goel <[email protected]>
- Loading branch information
1 parent
2639702
commit e4c7d9d
Showing
6 changed files
with
229 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.