8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 17:23:03 +01:00

Fix #7124 - Inconsistent RDB$USER_PRIVILEGES after dropping identity.

This commit is contained in:
Adriano dos Santos Fernandes 2022-04-11 08:21:23 -03:00
parent 03398f85fa
commit 988e7c2025

View File

@ -5975,8 +5975,13 @@ void DropSequenceNode::deleteIdentity(thread_db* tdbb, jrd_tra* transaction, con
WITH GEN.RDB$GENERATOR_NAME EQ name.c_str()
{
ERASE GEN;
if (!GEN.RDB$SECURITY_CLASS.NULL)
deleteSecurityClass(tdbb, transaction, GEN.RDB$SECURITY_CLASS);
}
END_FOR
deletePrivilegesByRelName(tdbb, transaction, name, obj_generator);
}