Fix OBJECT_TYPE/OBJECT_DOMAIN confusion

This doesn't have a significant impact except that now SECURITY LABEL ON
DOMAIN rejects types that are not domains.

Reported-by: 高增琦 <pgf00a@gmail.com>
This commit is contained in:
Peter Eisentraut 2017-08-02 10:40:32 -04:00
parent 32ca22b02d
commit 41cefbb6db
1 changed files with 1 additions and 1 deletions

View File

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