From e5105661604a19d5182b87c56f15553f6ace8e13 Mon Sep 17 00:00:00 2001 From: Roman Simakov Date: Mon, 19 Feb 2018 16:17:06 +0300 Subject: [PATCH] Backport CORE-5753: Parser allows to use GRANT OPTION for FUNCTION and PACKAGE. --- src/dsql/DdlNodes.epp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/dsql/DdlNodes.epp b/src/dsql/DdlNodes.epp index b6510da0ef..ef6ef44832 100644 --- a/src/dsql/DdlNodes.epp +++ b/src/dsql/DdlNodes.epp @@ -11040,6 +11040,14 @@ void GrantRevokeNode::grantRevoke(thread_db* tdbb, jrd_tra* transaction, const G ERRD_post(Arg::Gds(isc_dsql_cant_grant_option) << Arg::Str("views")); break; + case obj_udf: + ERRD_post(Arg::Gds(isc_dsql_cant_grant_option) << Arg::Str("functions")); + break; + + case obj_package_header: + ERRD_post(Arg::Gds(isc_dsql_cant_grant_option) << Arg::Str("packages")); + break; + default: break; }