From 41cefbb6db58c574e086efef2773a978f108d717 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 2 Aug 2017 10:40:32 -0400 Subject: [PATCH] Fix OBJECT_TYPE/OBJECT_DOMAIN confusion MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This doesn't have a significant impact except that now SECURITY LABEL ON DOMAIN rejects types that are not domains. Reported-by: 高增琦 --- src/backend/parser/gram.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y index 4b1ce09c44..62092ff7ec 100644 --- a/src/backend/parser/gram.y +++ b/src/backend/parser/gram.y @@ -6507,7 +6507,7 @@ SecLabelStmt: { SecLabelStmt *n = makeNode(SecLabelStmt); n->provider = $3; - n->objtype = OBJECT_TYPE; + n->objtype = OBJECT_DOMAIN; n->object = (Node *) $6; n->label = $8; $$ = (Node *) n; -- 2.40.0