8
0
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:
Roman Simakov 2018-06-25 12:07:37 +03:00
parent 7010ebba4b
commit 58e4f5a9ad

View File

@ -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