mirror of
https://github.com/postgres/postgres.git
synced 2025-10-29 22:49:41 +03:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user