From 988e7c202592541f21f0d609b9c68472f1deb606 Mon Sep 17 00:00:00 2001 From: Adriano dos Santos Fernandes Date: Mon, 11 Apr 2022 08:21:23 -0300 Subject: [PATCH] Fix #7124 - Inconsistent RDB$USER_PRIVILEGES after dropping identity. --- src/dsql/DdlNodes.epp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dsql/DdlNodes.epp b/src/dsql/DdlNodes.epp index eb05fd8375..6cb8316c99 100644 --- a/src/dsql/DdlNodes.epp +++ b/src/dsql/DdlNodes.epp @@ -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); }