mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Rename 'cmd' to 'cmd_name' in CreatePolicyStmt
To avoid confusion, rename CreatePolicyStmt's 'cmd' to 'cmd_name', parse_policy_command's 'cmd' to 'polcmd', and AlterPolicy's 'cmd_datum' to 'polcmd_datum', per discussion with Noah and as a follow-up to his correction of copynodes/equalnodes handling of the CreatePolicyStmt 'cmd' field. Back-patch to 9.5 where the CreatePolicyStmt was introduced, as we are still only in alpha.
This commit is contained in:
@ -4613,7 +4613,7 @@ CreatePolicyStmt:
|
||||
CreatePolicyStmt *n = makeNode(CreatePolicyStmt);
|
||||
n->policy_name = $3;
|
||||
n->table = $5;
|
||||
n->cmd = $6;
|
||||
n->cmd_name = $6;
|
||||
n->roles = $7;
|
||||
n->qual = $8;
|
||||
n->with_check = $9;
|
||||
|
Reference in New Issue
Block a user