Skip to content

Commit

Permalink
Fix the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
lohia-shalini committed Jan 9, 2025
1 parent bc1f5a5 commit e6b825d
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions test/JDBC/expected/db_securityadmin-vu-verify.out
Original file line number Diff line number Diff line change
Expand Up @@ -1344,8 +1344,7 @@ GRANT db_securityadmin_restrictions_login TO master_db_securityadmin;
GO
~~ERROR (Code: 0)~~

~~ERROR (Message: ERROR: permission denied to grant role "db_securityadmin_restrictions_login"
Detail: Only roles with the ADMIN option on role "db_securityadmin_restrictions_login" may grant this role.
~~ERROR (Message: ERROR: Babelfish-created logins/users/roles cannot be altered outside of a Babelfish session
Server SQLState: 42501)~~


Expand All @@ -1356,8 +1355,7 @@ REVOKE master_dbo FROM master_db_securityadmin;
GO
~~ERROR (Code: 0)~~

~~ERROR (Message: ERROR: permission denied to revoke role "master_dbo"
Detail: Only roles with the ADMIN option on role "master_dbo" may revoke this role.
~~ERROR (Message: ERROR: Babelfish-created logins/users/roles cannot be altered outside of a Babelfish session
Server SQLState: 42501)~~


Expand Down Expand Up @@ -1418,35 +1416,31 @@ GRANT master_db_securityadmin TO db_securityadmin_restrictions_login;
GO
~~ERROR (Code: 0)~~

~~ERROR (Message: ERROR: permission denied to grant role "master_db_securityadmin"
Detail: Only roles with the ADMIN option on role "master_db_securityadmin" may grant this role.
~~ERROR (Message: ERROR: Babelfish-created logins/users/roles cannot be altered outside of a Babelfish session
Server SQLState: 42501)~~


GRANT db_securityadmin_restrictions_login TO master_db_securityadmin;
GO
~~ERROR (Code: 0)~~

~~ERROR (Message: ERROR: permission denied to grant role "db_securityadmin_restrictions_login"
Detail: Only roles with the ADMIN option on role "db_securityadmin_restrictions_login" may grant this role.
~~ERROR (Message: ERROR: Babelfish-created logins/users/roles cannot be altered outside of a Babelfish session
Server SQLState: 42501)~~


REVOKE master_db_securityadmin FROM master_dbo;
GO
~~ERROR (Code: 0)~~

~~ERROR (Message: ERROR: permission denied to revoke role "master_db_securityadmin"
Detail: Only roles with the ADMIN option on role "master_db_securityadmin" may revoke this role.
~~ERROR (Message: ERROR: Babelfish-created logins/users/roles cannot be altered outside of a Babelfish session
Server SQLState: 42501)~~


REVOKE master_dbo FROM master_db_securityadmin;
GO
~~ERROR (Code: 0)~~

~~ERROR (Message: ERROR: permission denied to revoke role "master_dbo"
Detail: Only roles with the ADMIN option on role "master_dbo" may revoke this role.
~~ERROR (Message: ERROR: Babelfish-created logins/users/roles cannot be altered outside of a Babelfish session
Server SQLState: 42501)~~


Expand Down

0 comments on commit e6b825d

Please sign in to comment.