mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 00:43:02 +01:00
Adjust assert condition and added check if role exists.
This commit is contained in:
parent
7010ebba4b
commit
58e4f5a9ad
@ -11547,8 +11547,13 @@ void GrantRevokeNode::grantRevoke(thread_db* tdbb, jrd_tra* transaction, const G
|
||||
status_exception::raise(Arg::PrivateDyn(303) << objName.c_str()); // Package @1 does not exist
|
||||
break;
|
||||
|
||||
case obj_sql_role:
|
||||
if (!isItSqlRole(tdbb, transaction, objName, dummyName))
|
||||
status_exception::raise(Arg::PrivateDyn(188) << objName.c_str()); // Role doesn't exist.
|
||||
break;
|
||||
|
||||
default:
|
||||
fb_assert(object == NULL);
|
||||
fb_assert(object == NULL || objType >= obj_database);
|
||||
}
|
||||
|
||||
if (options == 1) // with grant option
|
||||
|
Loading…
Reference in New Issue
Block a user